Author: pmouawad
Date: Wed May 30 18:57:52 2018
New Revision: 1832564

URL: http://svn.apache.org/viewvc?rev=1832564&view=rev
Log:
Revert commit that broke tests

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=1832564&r1=1832563&r2=1832564&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 30 18:57:52 2018
@@ -400,10 +400,8 @@ public class HTTPHC4Impl extends HTTPHCA
                 final HttpContext context) throws HttpException, IOException {
             HttpResponse response = super.doReceiveResponse(request, conn, 
context);
             HttpConnectionMetrics metrics = conn.getMetrics();
-            HttpEntity entity = response.getEntity();
             context.setAttribute(CONTEXT_ATTRIBUTE_RECEIVED_BYTES, 
-                    metrics.getReceivedBytesCount()+
-                    (entity != null ? entity.getContentLength(): 0L));
+                    metrics.getReceivedBytesCount());
 
             metrics.reset();
             return response;


Reply via email to