Don't send empty form fields as undefined for file uploads
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user