Append the charset to the content type in method getContentType(),
suitable to the HTTP spec.
This commit is contained in:
parent
77f29e6dfd
commit
d8697dd762
1 changed files with 4 additions and 2 deletions
|
@ -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,7 +288,9 @@ public class ResponseTrans implements Externalizable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType () {
|
public String getContentType () {
|
||||||
return contentType;
|
if (charset != null)
|
||||||
|
return contentType+"; charset="+charset;
|
||||||
|
return contentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void setCookie (String key, String value) {
|
public synchronized void setCookie (String key, String value) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue