DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41705>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41705





------- Additional Comments From [EMAIL PROTECTED]  2007-02-27 06:23 -------
The code for PostWriter.java in the patch, should probably be changed slightly, 
from
    String postData = sampler.getQueryString();
    OutputStreamWriter out = new
OutputStreamWriter(connection.getOutputStream(), sampler.getContentEncoding());
    out.write(postData);

to
    String postData = sampler.getQueryString();
    OutputStreamWriter out = null;
    if(sampler.getContentEncoding() != null &&
sampler.getContentEncoding().trim().length() > 0) {
         out = new OutputStreamWriter(connection.getOutputStream(),
sampler.getContentEncoding());
     }
     else {
         out = new OutputStreamWriter(connection.getOutputStream());
     }
     out.write(postData);

so that the behavior is backwards compatible, i.e. if no encoding is specified,
the default one is used.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to