send urlencoded body only when in:formData

This commit is contained in:
vinay3scale
2015-10-06 02:03:25 +05:30
parent 60a1cd8071
commit d1325fca4e

2
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) {