jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1376887 - /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java
Date Fri, 24 Aug 2012 11:29:22 GMT
Author: andy
Date: Fri Aug 24 11:29:22 2012
New Revision: 1376887

URL: http://svn.apache.org/viewvc?rev=1376887&view=rev
Log:
Be clear directions are followed.

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

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java?rev=1376887&r1=1376886&r2=1376887&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java Fri
Aug 24 11:29:22 2012
@@ -269,6 +269,8 @@ public class HttpQuery extends Params
         try
         {
             httpConnection = (HttpURLConnection) target.openConnection();
+            // This is the default setting - but be clear about it.
+            httpConnection.setInstanceFollowRedirects(true) ;       
             httpConnection.setRequestProperty("Accept", contentTypeResult) ;
             
             int x = httpConnection.getReadTimeout() ;



Mime
View raw message