diff options
author | Manolo Carrasco <manolo@apache.org> | 2014-01-15 19:43:48 +0100 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2014-01-15 19:43:48 +0100 |
commit | 9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4 (patch) | |
tree | ea8ce2238ebf3704cef9879c21701ca0cf9c6b82 | |
parent | c4e2abb513ed173d7bd6fe240b65af2646dc2fd7 (diff) | |
download | gwtquery-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.java | 2 |
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"; |