From: Manolo Carrasco Date: Wed, 15 Jan 2014 18:43:48 +0000 (+0100) Subject: PUT and POST should be handled in the same way X-Git-Tag: gwtquery-project-1.4.3~44^2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4;p=gwtquery.git PUT and POST should be handled in the same way --- 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";