From d8697dd762d5742ed54c19153d06e8b8bc646aff Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 13 Mar 2002 23:38:13 +0000 Subject: [PATCH] Append the charset to the content type in method getContentType(), suitable to the HTTP spec. --- src/helma/framework/ResponseTrans.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index ca6d5029..326a5169 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -47,7 +47,7 @@ public class ResponseTrans implements Externalizable { private byte[] response = null; // contains the redirect URL - String redir = null; + private String redir = null; // cookies String cookieKeys[]; @@ -288,7 +288,9 @@ public class ResponseTrans implements Externalizable { } public String getContentType () { - return contentType; + if (charset != null) + return contentType+"; charset="+charset; + return contentType; } public synchronized void setCookie (String key, String value) {