From 893fed2393fbc86daa4bc021c061e47a78a72994 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 2 Nov 2008 00:34:01 +0000 Subject: [PATCH] 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 --- java/org/apache/coyote/http11/InternalInputBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } -- 2.11.0