jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1829747 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Date Sat, 21 Apr 2018 20:42:10 GMT
Author: pmouawad
Date: Sat Apr 21 20:42:10 2018
New Revision: 1829747

URL: http://svn.apache.org/viewvc?rev=1829747&view=rev
Log:
Fix regression on Redirect Handling

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1829747&r1=1829746&r2=1829747&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Sat Apr 21 20:42:10 2018
@@ -1051,9 +1051,6 @@ public class HTTPHC4Impl extends HTTPHCA
                 }
                 builder.setDefaultCredentialsProvider(credsProvider);
             }
-            if(getAutoRedirects()) {
-                builder.disableRedirectHandling();
-            }
             builder.disableContentCompression().addInterceptorLast(RESPONSE_CONTENT_ENCODING);
             if(BASIC_AUTH_PREEMPTIVE) {
                 builder.addInterceptorFirst(PREEMPTIVE_AUTH_INTERCEPTOR);
@@ -1152,6 +1149,7 @@ public class HTTPHC4Impl extends HTTPHCA
             rCB.setConnectTimeout(cto);
         }
     
+        rCB.setRedirectsEnabled(getAutoRedirects());
         rCB.setMaxRedirects(HTTPSamplerBase.MAX_REDIRECTS);
         rCB.setRedirectsEnabled(getAutoRedirects());
         httpRequest.setConfig(rCB.build());



Mime
View raw message