aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2014-01-15 19:43:48 +0100
committerManolo Carrasco <manolo@apache.org>2014-01-15 19:43:48 +0100
commit9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4 (patch)
treeea8ce2238ebf3704cef9879c21701ca0cf9c6b82
parentc4e2abb513ed173d7bd6fe240b65af2646dc2fd7 (diff)
downloadgwtquery-9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4.tar.gz
gwtquery-9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4.zip
PUT and POST should be handled in the same way
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
index 04020049..0725465f 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
@@ -128,7 +128,7 @@ public class AjaxTransportJre implements AjaxTransport {
}
}
- if (!s.getType().equals("GET")) {
+ if (s.getType().matches("POST|PUT")) {
String ctype = s.getDataType();
if (s.getDataType().toLowerCase().startsWith("json")) {
ctype = "application/json; charset=utf-8";