Author: sebb
Date: Mon Oct  6 04:36:48 2008
New Revision: 702107

URL: http://svn.apache.org/viewvc?rev=702107&view=rev
Log:
HttpClient requires null encoding to trigger default

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

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java?rev=702107&r1=702106&r2=702107&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
 Mon Oct  6 04:36:48 2008
@@ -367,11 +367,13 @@
 
                 // If a content encoding is specified, we set it as http 
parameter, so that
                 // the post body will be encoded in the specified content 
encoding
-                final String contentEncoding = getContentEncoding();
+                String contentEncoding = getContentEncoding();
                 boolean haveContentEncoding = false;
                 if(contentEncoding != null && contentEncoding.trim().length() 
> 0) {
                     post.getParams().setContentCharset(contentEncoding);
                     haveContentEncoding = true;
+                } else if (contentEncoding != null && 
contentEncoding.trim().length() == 0){
+                    contentEncoding=null;
                 }
 
                 // If none of the arguments have a name specified, we



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to