This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
swagger-ui
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Problem sending parameters via POST
Jquery seems to fail posting data as POST params if contentType is overwritten. At least in chrome
bubble
Артём Курапов
12 years ago
parent
09c97af686
commit
4ebfd081c0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/main/coffeescript/view/OperationView.coffee
+ 1
- 1
src/main/coffeescript/view/OperationView.coffee
View File
@@ -78,7 +78,7 @@ class OperationView extends Backbone.View
complete: (data) =>
@showCompleteStatus(data)
obj.contentType = "application/json" if (obj.type.toLowerCase() == "p
ost" or obj.type.toLowerCase() == "p
ut" or obj.type.toLowerCase() == "patch")
obj.contentType = "application/json" if (obj.type.toLowerCase() == "put" or obj.type.toLowerCase() == "patch")
jQuery.ajax(obj)
false
Write
Preview
Loading…
Cancel
Save