From c0907a6e65181f33148a75ffffc2a19e72a458f5 Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Fri, 6 Jul 2012 15:31:12 +0000 Subject: [PATCH] best handling of data for PUT method --- .../java/com/google/gwt/query/client/plugins/ajax/Ajax.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java index 02588a20..58ac3f62 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java @@ -222,7 +222,7 @@ public class Ajax extends GQuery { if (data == null && settings.getData() != null) { String type = settings.getDataType(); if (type != null - && httpMethod == RequestBuilder.POST + && (httpMethod == RequestBuilder.POST || httpMethod == RequestBuilder.PUT) && type.equalsIgnoreCase("json")) { data = settings.getData().toJsonString(); } else { -- 2.39.5