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 2012/08/24 16:47:27 UTC

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

Author: sebb
Date: Fri Aug 24 14:47:27 2012
New Revision: 1376948

URL: http://svn.apache.org/viewvc?rev=1376948&view=rev
Log:
We already derived the contentEncoding (charset) above

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=1376948&r1=1376947&r2=1376948&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 Fri Aug 24 14:47:27 2012
@@ -916,9 +916,8 @@ public class HTTPHC4Impl extends HTTPHCA
                         HTTPArgument arg = (HTTPArgument) args.next().getObjectValue();
                         postBody.append(arg.getValue());
                     }
-                    final String charset = getContentEncoding(HTTP.DEF_CONTENT_CHARSET.name());
                     // Let StringEntity perform the encoding
-                    StringEntity requestEntity = new StringEntity(postBody.toString(), charset);
+                    StringEntity requestEntity = new StringEntity(postBody.toString(), contentEncoding);
                     post.setEntity(requestEntity);
                     postedBody.append(postBody.toString());
                 } else {