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/30 11:05:17 UTC

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

Author: sebb
Date: Thu Aug 30 09:05:16 2012
New Revision: 1378863

URL: http://svn.apache.org/viewvc?rev=1378863&view=rev
Log:
Use the charset created earlier.
Note: StringBody allows null charset and defaults to ASCII

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=1378863&r1=1378862&r2=1378863&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 Thu Aug 30 09:05:16 2012
@@ -816,8 +816,7 @@ public class HTTPHC4Impl extends HTTPHCA
                    continue;
                }
                FormBodyPart formPart;
-               StringBody stringBody = new StringBody(arg.getValue(),
-                       Charset.forName(contentEncoding == null ? "US-ASCII" : contentEncoding));
+               StringBody stringBody = new StringBody(arg.getValue(), charset);
                formPart = new FormBodyPart(arg.getName(), stringBody);                   
                multiPart.addPart(formPart);
             }