You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2008/11/02 01:34:01 UTC
svn commit: r709811 -
/tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
Author: markt
Date: Sat Nov 1 17:34:01 2008
New Revision: 709811
URL: http://svn.apache.org/viewvc?rev=709811&view=rev
Log:
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
Modified:
tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java?rev=709811&r1=709810&r2=709811&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java Sat Nov 1 17:34:01 2008
@@ -723,7 +723,7 @@
if (parsingHeader) {
if (lastValid == buf.length) {
- throw new IOException
+ throw new IllegalArgumentException
(sm.getString("iib.requestheadertoolarge.error"));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org