Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
bubblev
/
swagger-ui
Segui
4
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Problem sending parameters via POST
Jquery seems to fail posting data as POST params if contentType is overwritten. At least in chrome
bubble
Артём Курапов
12 anni fa
parent
09c97af686
commit
4ebfd081c0
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
src/main/coffeescript/view/OperationView.coffee
+ 1
- 1
src/main/coffeescript/view/OperationView.coffee
Vedi 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
Scrivi
Anteprima
Caricamento…
Annulla
Salva