send urlencoded body only when in:formData
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -4244,7 +4244,7 @@ Operation.prototype.getBody = function (headers, args, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handle form params
|
// 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 = '';
|
var encoded = '';
|
||||||
|
|
||||||
for (key in formParams) {
|
for (key in formParams) {
|
||||||
|
|||||||
Reference in New Issue
Block a user