This commit is contained in:
Tony Tam
2015-11-27 17:28:46 -08:00
parent d59e4141a1
commit 8276fbf073
3 changed files with 5 additions and 5 deletions

View File

@@ -642,8 +642,8 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$('.response_throbber', $(this.el)).hide();
//adds curl output
var curlCommand = this.model.asCurl(this.map);
// adds curl output
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
curlCommand = curlCommand.replace('!', '!');
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');