Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
bubblev
/
swagger-ui
Seguir
4
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Problem sending parameters via POST
Jquery seems to fail posting data as POST params if contentType is overwritten. At least in chrome
bubble
Артём Курапов
hace 12 años
padre
09c97af686
commit
4ebfd081c0
Se han
modificado 1 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
src/main/coffeescript/view/OperationView.coffee
+ 1
- 1
src/main/coffeescript/view/OperationView.coffee
Ver fichero
@@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar