You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/11/25 13:33:07 UTC

DO NOT REPLY [Bug 24970] New: - charset appended to content-type even if not text/*

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970

charset appended to content-type even if not text/*

           Summary: charset appended to content-type even if not text/*
           Product: Tomcat 4
           Version: 4.1.29
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: skoehler@upb.de


A JSP-Page (or Servlet) like

  <%
    response.setContentType("application/pdf");
  %>
  wurst

results in the Content-Type-Header
  
  Content-Type: application/pdf;charset=ISO-8859-1

which is not allowed according to HTTP-RFCs. The charset may only be appended
when the Content-Type is "text/*".

It causes bad behaviour with IE, that's this can be critical for some Servlets.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org