fixes #1767
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -25719,7 +25719,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
|
|
||||||
|
|
||||||
// adds curl output
|
// adds curl output
|
||||||
var curlCommand = this.model.asCurl(this.map);
|
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
||||||
curlCommand = curlCommand.replace('!', '!');
|
curlCommand = curlCommand.replace('!', '!');
|
||||||
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
||||||
|
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -643,7 +643,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
|
|
||||||
|
|
||||||
// adds curl output
|
// adds curl output
|
||||||
var curlCommand = this.model.asCurl(this.map);
|
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
||||||
curlCommand = curlCommand.replace('!', '!');
|
curlCommand = curlCommand.replace('!', '!');
|
||||||
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user