Merge pull request #1650 from VinayBhalerao/urlencoded-json-body

Send POST body with content-type: application/x-www-form-urlencoded
This commit is contained in:
Tony Tam
2015-10-05 14:23:41 -07:00

4
dist/swagger-ui.js vendored
View File

@@ -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);