jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject svn commit: r1462624 - /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java
Date Fri, 29 Mar 2013 19:48:04 GMT
Author: rvesse
Date: Fri Mar 29 19:48:04 2013
New Revision: 1462624

URL: http://svn.apache.org/r1462624
Log:
Change Service.configureQuery() to use isTrueOrUndef() rather than isTrue() because the relevant
settings are on by default so using isTrue() means they always turn off unless explicitly
enabled, relates to JENA-405

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java?rev=1462624&r1=1462623&r2=1462624&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java Fri
Mar 29 19:48:04 2013
@@ -169,8 +169,8 @@ public class Service
     	httpQuery.merge(QueryEngineHTTP.getServiceParams(uri, context));
     	httpQuery.addParam(HttpParams.pQuery, query.toString());
     	httpQuery.setAccept(WebContent.contentTypeResultsXML);
-    	httpQuery.setAllowGZip(context.isTrue(queryGzip));
-    	httpQuery.setAllowDeflate(context.isTrue(queryDeflate));
+    	httpQuery.setAllowGZip(context.isTrueOrUndef(queryGzip));
+    	httpQuery.setAllowDeflate(context.isTrueOrUndef(queryDeflate));
 
     	String user = context.getAsString(queryAuthUser);
     	String pwd = context.getAsString(queryAuthPwd);



Mime
View raw message