You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2006/05/18 20:32:06 UTC
[jira] Resolved: (JCR-422) charset in Content-Type header shouldn't
be in quotes
[ http://issues.apache.org/jira/browse/JCR-422?page=all ]
angela resolved JCR-422:
------------------------
Resolution: Fixed
applied suggested modification and adjusted corresponding method that retrieves encoding from a given contenttype as well.
rev.407604
> 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