Don't send empty form fields as undefined for file uploads
This commit is contained in:
@@ -121,7 +121,8 @@ class OperationView extends Backbone.View
|
|||||||
# add params
|
# add params
|
||||||
for param in @model.parameters
|
for param in @model.parameters
|
||||||
if param.paramType is 'form'
|
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
|
# headers in operation
|
||||||
headerParams = {}
|
headerParams = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user