Don't send empty form fields as undefined for file uploads

This commit is contained in:
Johan.Bloemberg
2014-03-10 11:18:43 +01:00
parent 28ac6f8745
commit e84acba53e

View File

@@ -121,6 +121,7 @@ class OperationView extends Backbone.View
# add params
for param in @model.parameters
if param.paramType is 'form'
if map[param.name] != undefined
bodyParam.append(param.name, map[param.name])
# headers in operation