updated to support file + form params in same request

This commit is contained in:
Tony Tam
2013-04-05 08:26:14 -07:00
parent 722da60f5d
commit 091c3f912b
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ class OperationView extends Backbone.View
# add params except file
for param in @model.parameters
if param.paramType is 'body' and param.name isnt 'file'
if (param.paramType is 'body' or 'form') and param.name isnt 'file'
bodyParam.append(param.name, map[param.name])
# add files