Hardcoded response encoding to ISO-8859-1 to see
if this helps on Mac OS X
This commit is contained in:
parent
bb0d9c02fd
commit
80344147dc
1 changed files with 5 additions and 1 deletions
|
@ -174,7 +174,11 @@ public class ResponseTrans implements Externalizable {
|
|||
public synchronized void close () {
|
||||
if (response == null) {
|
||||
if (buffer != null) {
|
||||
try {
|
||||
response = buffer.toString ().getBytes ("ISO-8859-1");
|
||||
} catch (UnsupportedEncodingException badenc) {
|
||||
response = buffer.toString ().getBytes ();
|
||||
}
|
||||
buffer = null; // make sure this is done only once, even with more requsts attached
|
||||
} else {
|
||||
response = new byte[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue