mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 19:09:10 +00:00
428383 limit white space between requests
This commit is contained in:
parent
352a1303e0
commit
f092561a8a
@ -442,6 +442,13 @@ public class HttpParser
|
||||
break;
|
||||
else if (ch<0)
|
||||
throw new BadMessage();
|
||||
|
||||
// count this white space as a header byte to avoid DOS
|
||||
if (_maxHeaderBytes>0 && ++_headerBytes>_maxHeaderBytes)
|
||||
{
|
||||
LOG.warn("padding is too large >"+_maxHeaderBytes);
|
||||
throw new BadMessage(HttpStatus.BAD_REQUEST_400);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user