form data fix

This commit is contained in:
Tony Tam
2013-06-08 23:07:37 -07:00
parent ecf1519abf
commit 11b4d6d077
4 changed files with 36 additions and 19 deletions

View File

@@ -156,7 +156,7 @@ class OperationView extends Backbone.View
log 'content type = ' + obj.contentType
if not obj.data or (obj.type is 'GET' or obj.type is 'DELETE')
if not (obj.data or (obj.type is 'GET' or obj.type is 'DELETE')) and obj.contentType is not "application/x-www-form-urlencoded"
obj.contentType = false
log 'content type is now = ' + obj.contentType