You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2018/04/25 00:37:38 UTC

[juneau] branch master updated: Minor fix in RestClient.

This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d0de97  Minor fix in RestClient.
8d0de97 is described below

commit 8d0de97f8a86b688d91c2a4f216c9a1234cc2620
Author: JamesBognar <ja...@apache.org>
AuthorDate: Tue Apr 24 20:37:22 2018 -0400

    Minor fix in RestClient.
---
 .../src/main/java/org/apache/juneau/rest/client/RestClient.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
index 751163f..8bc4b24 100644
--- a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
+++ b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
@@ -1009,7 +1009,7 @@ public class RestClient extends BeanContext implements Closeable {
 
 						String url = rmm.getUrl();
 						String httpMethod = rmm.getHttpMethod();
-						try (RestCall rc = doCall(httpMethod, url, httpMethod.equals("POST"))) {
+						try (RestCall rc = doCall(httpMethod, url, httpMethod.equals("POST") || httpMethod.equals("PUT"))) {
 
 							rc.serializer(serializer).parser(parser);
 

-- 
To stop receiving notification emails like this one, please contact
jamesbognar@apache.org.