diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b077d4..f7547828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Version 58: * basic_fields::set optimization * basic_parser::put doc * Use static string in basic_fields::reader +* Remove redundant code API Changes: diff --git a/include/beast/http/impl/write.ipp b/include/beast/http/impl/write.ipp index c87960f7..bcfb4ab2 100644 --- a/include/beast/http/impl/write.ipp +++ b/include/beast/http/impl/write.ipp @@ -758,9 +758,6 @@ write(SyncWriteStream& stream, "BodyReader requirements not met"); auto sr = make_serializer(msg); write(stream, sr, ec); - if(! ec) - if(sr.need_close()) - ec = error::end_of_stream; } template