From 9ff6b89b9ee8da3c7afc8713eb52a3e998ded4f4 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 15 Jan 2014 19:43:48 +0100 Subject: [PATCH] PUT and POST should be handled in the same way --- .../src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5