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@726052
13f79535-47bb-0310-9956-
ffa450edef68
if (parsingHeader) {
if (lastValid == buf.length) {
- throw new IOException
+ throw new IllegalArgumentException
(sm.getString("iib.requestheadertoolarge.error"));
}
if (parsingHeader) {
if (lastValid == buf.length) {
- throw new IOException
+ throw new IllegalArgumentException
(sm.getString("iib.requestheadertoolarge.error"));
}