]> source.dussan.org Git - gwtquery.git/commitdiff
PUT and POST should be handled in the same way
authorManolo Carrasco <manolo@apache.org>
Wed, 15 Jan 2014 18:43:48 +0000 (19:43 +0100)
committerManolo Carrasco <manolo@apache.org>
Wed, 15 Jan 2014 18:43:48 +0000 (19:43 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java

index 0402004987ad50d1cccc0295c8eadc5b7e8bf4df..0725465fb3e24cac896777c3b1fa4a00b15ac8e8 100644 (file)
@@ -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";