Transmit charset as separate object when serializing, instead of
pre-mangling it into the contentType.
This commit is contained in:
parent
9f76a1c03b
commit
299c732772
1 changed files with 3 additions and 1 deletions
|
@ -435,10 +435,11 @@ public final class ResponseTrans implements Externalizable {
|
||||||
realm = (String) s.readObject ();
|
realm = (String) s.readObject ();
|
||||||
lastModified = s.readLong ();
|
lastModified = s.readLong ();
|
||||||
notModified = s.readBoolean ();
|
notModified = s.readBoolean ();
|
||||||
|
charset = (String) s.readObject ();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeExternal (ObjectOutput s) throws IOException {
|
public void writeExternal (ObjectOutput s) throws IOException {
|
||||||
s.writeObject (getContentType()); // append charset to contentType
|
s.writeObject (contentType);
|
||||||
s.writeObject (response);
|
s.writeObject (response);
|
||||||
s.writeObject (redir);
|
s.writeObject (redir);
|
||||||
s.writeObject (cookieKeys);
|
s.writeObject (cookieKeys);
|
||||||
|
@ -450,6 +451,7 @@ public final class ResponseTrans implements Externalizable {
|
||||||
s.writeObject (realm);
|
s.writeObject (realm);
|
||||||
s.writeLong (lastModified);
|
s.writeLong (lastModified);
|
||||||
s.writeBoolean (notModified);
|
s.writeBoolean (notModified);
|
||||||
|
s.writeObject (charset);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue