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,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue