Jetty9 - Returning 413 and not 414 when the request headers are too large.

This commit is contained in:
Simone Bordet 2012-08-23 20:36:08 +02:00
parent 5672a31432
commit a3993f793d
1 changed files with 45 additions and 45 deletions

View File

@ -283,7 +283,7 @@ public class HttpParser
if (_maxHeaderBytes>0 && ++_headerBytes>_maxHeaderBytes) if (_maxHeaderBytes>0 && ++_headerBytes>_maxHeaderBytes)
{ {
badMessage(buffer,HttpStatus.REQUEST_URI_TOO_LONG_414,null); badMessage(buffer,HttpStatus.REQUEST_ENTITY_TOO_LARGE_413,null);
return true; return true;
} }