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,7 +121,8 @@ class OperationView extends Backbone.View
# add params
for param in @model.parameters
if param.paramType is 'form'
bodyParam.append(param.name, map[param.name])
if map[param.name] != undefined
bodyParam.append(param.name, map[param.name])
# headers in operation
headerParams = {}