Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46125
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 2 Nov 2008 00:34:01 +0000 (00:34 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 2 Nov 2008 00:34:01 +0000 (00:34 +0000)
Change the exception if the headers are too big to force a 400 status code rather than the current 200

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

java/org/apache/coyote/http11/InternalInputBuffer.java

index d98a64b..326b4c3 100644 (file)
@@ -723,7 +723,7 @@ public class InternalInputBuffer implements InputBuffer {
         if (parsingHeader) {
 
             if (lastValid == buf.length) {
-                throw new IOException
+                throw new IllegalArgumentException
                     (sm.getString("iib.requestheadertoolarge.error"));
             }