tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r709811 - /tomcat/trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
Date Sun, 02 Nov 2008 00:34:01 GMT
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


Mime
View raw message