From 5808fa247b6c04fe1b0d8ad995463095a870344b Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 15 Jun 2017 10:16:43 -0700 Subject: [PATCH] Remove redundant code --- CHANGELOG.md | 1 + include/beast/http/impl/write.ipp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) 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