clamp/limit a few things; a few cosmetics on animation control

This commit is contained in:
UbitUmarov
2022-04-15 02:01:12 +01:00
parent d0d71317e0
commit d3ec735283
7 changed files with 101 additions and 74 deletions

View File

@@ -167,6 +167,8 @@ namespace OSHttpServer.Parser
{
if (!m_curHeaderValue.TryParseInt(out m_bodyBytesLeft))
throw new BadRequestException("Content length is not a number.");
if(m_bodyBytesLeft > 64 * 1024 * 1204)
throw new BadRequestException("Content length too large.");
}
if (HeaderReceived != null)