Fix for basic_parser::skip(true) and docs

fix #742
This commit is contained in:
Vinnie Falco
2017-08-15 07:00:56 -07:00
parent f570593a01
commit 76feb4afd4
6 changed files with 25 additions and 12 deletions
@@ -587,10 +587,8 @@ finish_header(error_code& ec, std::false_type)
// treat the message as not having a body.
// https://github.com/boostorg/beast/issues/692
state_ = state::complete;
return;
}
if(f_ & flagContentLength)
else if(f_ & flagContentLength)
{
if(len_ > body_limit_)
{