From d1325fca4e6386b1e5c7a72e02a4f081c69468d0 Mon Sep 17 00:00:00 2001 From: vinay3scale Date: Tue, 6 Oct 2015 02:03:25 +0530 Subject: [PATCH] send urlencoded body only when in:formData --- dist/swagger-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js index d64e532f..391a1e35 100644 --- a/dist/swagger-ui.js +++ b/dist/swagger-ui.js @@ -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); \ No newline at end of file +});}).call(this);