[ http://issues.apache.org/jira/browse/JCR-422?page=comments#action_12413406 ]
Jukka Zitting commented on JCR-422: ----------------------------------- Merged for 1.0.1 in revision 409600. > 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 > Versions: 1.0 > Reporter: Rob Owen > Assignee: angela > Fix For: 1.0.1 > > 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
