From: markt Date: Sun, 2 Nov 2008 00:34:01 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46125 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=893fed2393fbc86daa4bc021c061e47a78a72994;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46125 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 --- diff --git a/java/org/apache/coyote/http11/InternalInputBuffer.java b/java/org/apache/coyote/http11/InternalInputBuffer.java index d98a64bd9..326b4c3e0 100644 --- a/java/org/apache/coyote/http11/InternalInputBuffer.java +++ b/java/org/apache/coyote/http11/InternalInputBuffer.java @@ -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")); }