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 2005/07/06 18:57:28 UTC

DO NOT REPLY [Bug 35632] New: - 5.5 no Content Type header information for TXT files

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=35632

           Summary: 5.5 no Content Type header information for TXT files
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: woodchuck_5@yahoo.com


Tomcat 5.5 does not create the "Content Type" header information when serving
TXT files back to the browser.

proof of bug, is that i captured the header information from Tomcat 4.1 and
Tomcat 5.5.  i also made sure to clear the cache each time prior to request the
TXT file.

header chunk from Tomcat 4.1 when serving a TXT file:
HTTP/1.1 200 
Server: Microsoft-IIS/5.0
Date: Wed, 06 Jul 2005 16:22:39 GMT
ETag: W/"1706-1120587147968"
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706

header chunk from Tomcat 5.5 when serving a TXT file:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/"1706-1120666790014"
Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
Content-Length: 1706
Date: Wed, 06 Jul 2005 16:20:26 GMT

i also verified Tomcat 5.5's conf/web.xml file and it does have the mime mapping
entry for TXT files:

    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>


the side effect resulting from this is that Internet Explorer 6.0 displays the
TXT file using a non fixed-width font and any 'formatting' is lost as a result.
 that is, all the consecutive spaces are stripped.  it seems to rely on "Content
Type".

however, in FireFox 1.04, the lack of this "Content Type" header information
does *not* seem to matter as it displayed the TXT file correctly (ie. with a
fixed width font) and preserved the 'formatting'.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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