tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r463861 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java
Date Fri, 13 Oct 2006 22:52:23 GMT
Author: remm
Date: Fri Oct 13 15:52:19 2006
New Revision: 463861

URL: http://svn.apache.org/viewvc?view=rev&rev=463861
Log:
- Port patch.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java?view=diff&rev=463861&r1=463860&r2=463861
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java Fri Oct 13
15:52:19 2006
@@ -749,7 +749,8 @@
                 // If it fails, we try to get a Writer instead if we're
                 // trying to serve a text file
                 if ( (contentType == null)
-                     || (contentType.startsWith("text")) ) {
+                        || (contentType.startsWith("text"))
+                        || (contentType.endsWith("xml")) ) {
                     writer = response.getWriter();
                 } else {
                     throw e;



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


Mime
View raw message