jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Owen (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-422) charset in Content-Type header shouldn't be in quotes
Date Tue, 02 May 2006 12:30:46 GMT
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


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