Transmit charset as separate object when serializing, instead of

pre-mangling it into the contentType.
This commit is contained in:
hns 2002-09-13 16:31:18 +00:00
parent 9f76a1c03b
commit 299c732772

View file

@ -435,10 +435,11 @@ public final class ResponseTrans implements Externalizable {
realm = (String) s.readObject ();
lastModified = s.readLong ();
notModified = s.readBoolean ();
charset = (String) s.readObject ();
}
public void writeExternal (ObjectOutput s) throws IOException {
s.writeObject (getContentType()); // append charset to contentType
s.writeObject (contentType);
s.writeObject (response);
s.writeObject (redir);
s.writeObject (cookieKeys);
@ -450,6 +451,7 @@ public final class ResponseTrans implements Externalizable {
s.writeObject (realm);
s.writeLong (lastModified);
s.writeBoolean (notModified);
s.writeObject (charset);
}
}