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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]