Fix missing check for error code after header is parsed:

The missing error check leads to completely ignoring the body limit,
as the body limit is compared to the "Content-Length" header inside
the "finish_header" method.

closes #2201
This commit is contained in:
Michael Haubenschild
2021-03-25 15:04:12 +01:00
committed by Richard Hodges
parent 26e9a4c294
commit 31a1fb332a
4 changed files with 24 additions and 1 deletions
@@ -164,6 +164,8 @@ loop:
goto done;
}
finish_header(ec, is_request{});
if(ec)
goto done;
break;
case state::body0: