forked from boostorg/beast
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:
1 parent
26e9a4c294
commit
31a1fb332a
4 files changed
+24
-1
No files matched your search
@@ -164,6 +164,8 @@ loop:
|
||||
goto done;
|
||||
}
|
||||
finish_header(ec, is_request{});
|
||||
if(ec)
|
||||
goto done;
|
||||
break;
|
||||
|
||||
case state::body0:
|
||||
|
||||
Reference in new issue
Block a user