jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1552061 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
Date Wed, 18 Dec 2013 19:04:03 GMT
Author: andy
Date: Wed Dec 18 19:04:03 2013
New Revision: 1552061

URL: http://svn.apache.org/r1552061
Log:
Cope with POST of no entity.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java?rev=1552061&r1=1552060&r2=1552061&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java Wed Dec 18 19:04:03
2013
@@ -658,7 +658,8 @@ public class HttpOp {
                                     HttpClient httpClient, HttpContext httpContext, HttpAuthenticator
authenticator) {
         String requestURI = determineRequestURI(url);
         HttpPost httppost = new HttpPost(requestURI);
-        httppost.setEntity(entity);
+        if ( entity != null )
+            httppost.setEntity(entity);
         exec(url, httppost, acceptHeader, handler, httpClient, httpContext, authenticator);
     }
 



Mime
View raw message