fix for #944, form data with 2.0 spec

This commit is contained in:
Tony Tam
2015-02-21 00:32:31 -08:00
parent 65034e0876
commit 24b649f2d5
3 changed files with 248 additions and 247 deletions

View File

@@ -230,7 +230,7 @@ class OperationView extends Backbone.View
# add params
for param in @model.parameters
if param.paramType is 'form'
if param.paramType is 'form' or param.in is 'formData'
if param.type.toLowerCase() isnt 'file' and map[param.name] != undefined
bodyParam.append(param.name, map[param.name])