Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50413#c6
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 9 Jan 2011 08:07:02 +0000 (08:07 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 9 Jan 2011 08:07:02 +0000 (08:07 +0000)
Serve the error page regardless of "Range" header in the original request.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1056889 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/servlets/DefaultServlet.java

index 0fc2ec4..5cd3510 100644 (file)
@@ -883,7 +883,8 @@ public class DefaultServlet
 
         }
 
-        if ( (cacheEntry.context != null) 
+        if ( (cacheEntry.context != null)
+                || isError
                 || ( ((ranges == null) || (ranges.isEmpty()))
                         && (request.getHeader("Range") == null) )
                 || (ranges == FULL) ) {