send urlencoded body only when in:formData
This commit is contained in:
4
dist/swagger-ui.js
vendored
4
dist/swagger-ui.js
vendored
@@ -4244,7 +4244,7 @@ Operation.prototype.getBody = function (headers, args, opts) {
|
||||
}
|
||||
|
||||
// handle form params
|
||||
if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {
|
||||
if (headers['Content-Type'] === 'application/x-www-form-urlencoded' && param.in === 'formData') {
|
||||
var encoded = '';
|
||||
|
||||
for (key in formParams) {
|
||||
@@ -32278,4 +32278,4 @@ SwaggerUi.Views.StatusCodeView = Backbone.View.extend({
|
||||
}
|
||||
return this;
|
||||
}
|
||||
});}).call(this);
|
||||
});}).call(this);
|
||||
|
||||
Reference in New Issue
Block a user