Call on_chunk when the extension is empty

fix #435
This commit is contained in:
Vinnie Falco
2017-06-13 04:57:58 -07:00
parent 7712ca09b2
commit 0eb3a6b77e
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ Version 56:
* Add provisional IANA header field names
* Add string_view_body
* Call on_chunk when the extension is empty
--------------------------------------------------------------------------------

View File

@ -567,6 +567,9 @@ parse_chunk_header(char const*& p0,
ec = error::bad_chunk;
return;
}
impl().on_chunk(v, {}, ec);
if(ec)
return;
len_ = v;
skip_ = 2;
p0 = eol;