You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2016/05/04 20:00:22 UTC

svn commit: r1742326 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java

Author: sebb
Date: Wed May  4 20:00:22 2016
New Revision: 1742326

URL: http://svn.apache.org/viewvc?rev=1742326&view=rev
Log:
Docn

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=1742326&r1=1742325&r2=1742326&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 Wed May  4 20:00:22 2016
@@ -203,6 +203,7 @@ public class HTTPHC4Impl extends HTTPHCA
     /**
      * Custom implementation that backups headers related to Compressed responses 
      * that HC core {@link ResponseContentEncoding} removes after uncompressing
+     * See Bug 59401
      */
     private static final HttpResponseInterceptor RESPONSE_CONTENT_ENCODING = new ResponseContentEncoding() {
         @Override
@@ -213,6 +214,7 @@ public class HTTPHC4Impl extends HTTPHCA
             final HttpEntity entity = response.getEntity();
             final HttpClientContext clientContext = HttpClientContext.adapt(context);
             final RequestConfig requestConfig = clientContext.getRequestConfig();
+            // store the headers if necessary
             if (requestConfig.isContentCompressionEnabled() && entity != null && entity.getContentLength() != 0) {
                 final Header ceheader = entity.getContentEncoding();
                 if (ceheader != null) {
@@ -224,6 +226,8 @@ public class HTTPHC4Impl extends HTTPHCA
                    context.setAttribute(JMETER_RESPONSE_BACKUP_HEADERS, headersToSave);
                 }
             }
+
+            // Now invoke original parent code
             super.process(response, clientContext);
         }
     };