diff --git a/CHANGELOG.md b/CHANGELOG.md index aae16525..10d9b589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Version 56: * Add provisional IANA header field names * Add string_view_body +* Call on_chunk when the extension is empty -------------------------------------------------------------------------------- diff --git a/include/beast/http/impl/basic_parser.ipp b/include/beast/http/impl/basic_parser.ipp index 24408767..e37b824f 100644 --- a/include/beast/http/impl/basic_parser.ipp +++ b/include/beast/http/impl/basic_parser.ipp @@ -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;