[ http://issues.apache.org/jira/browse/JCR-422?page=all ]
angela reassigned JCR-422:
--------------------------
Assign To: angela
> charset in Content-Type header shouldn't be in quotes
> -----------------------------------------------------
>
> Key: JCR-422
> URL: http://issues.apache.org/jira/browse/JCR-422
> Project: Jackrabbit
> Type: Bug
> Components: webdav
> Reporter: Rob Owen
> Assignee: angela
>
> The charset value in the Content-Type header returned from
> IOUtil.buildContentType is enclosed in quotes. This value should be a token
> which does not include double quotes.
> Index:
> C:/jprojects/eclipse/jackrabbit/jcr-server/server/src/java/org/apache/jackrabbit/server/io/IOUtil.java
> ===================================================================
> ---
> C:/jprojects/eclipse/jackrabbit/jcr-server/server/src/java/org/apache/jackrabbit/server/io/IOUtil.java
> (revision 397215)
> +++
> C:/jprojects/eclipse/jackrabbit/jcr-server/server/src/java/org/apache/jackrabbit/server/io/IOUtil.java
> (working copy)
> @@ -112,7 +112,7 @@
> public static String buildContentType(String mimeType, String encoding) {
> String contentType = mimeType;
> if (contentType != null && encoding != null) {
> - contentType += "; charset=\"" + encoding + "\"";
> + contentType += "; charset=" + encoding;
> }
> return contentType;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira