Append the charset to the content type in method getContentType(),

suitable to the HTTP spec.
This commit is contained in:
hns 2002-03-13 23:38:13 +00:00
parent 77f29e6dfd
commit d8697dd762

View file

@ -47,7 +47,7 @@ public class ResponseTrans implements Externalizable {
private byte[] response = null; private byte[] response = null;
// contains the redirect URL // contains the redirect URL
String redir = null; private String redir = null;
// cookies // cookies
String cookieKeys[]; String cookieKeys[];
@ -288,6 +288,8 @@ public class ResponseTrans implements Externalizable {
} }
public String getContentType () { public String getContentType () {
if (charset != null)
return contentType+"; charset="+charset;
return contentType; return contentType;
} }