jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-422) charset in Content-Type header shouldn't be in quotes
Date Tue, 02 May 2006 12:45:47 GMT
    [ http://issues.apache.org/jira/browse/JCR-422?page=comments#action_12377390 ] 

angela commented on JCR-422:
----------------------------

consequently, parsing the contentType should be adjusted as well.

> 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


Mime
View raw message