Return http::error::end_of_stream on HTTP read eof (API Change)

fix #350
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:16 -07:00
parent 463d891e5c
commit 0656c5b1f5
5 changed files with 62 additions and 4 deletions
+2 -2
View File
@@ -253,7 +253,7 @@ public:
message_parser<true, dynamic_body, fields> p;
error_code ec;
read(ss, b, p, ec);
BEAST_EXPECT(ec == boost::asio::error::eof);
BEAST_EXPECT(ec == http::error::end_of_stream);
}
{
multi_buffer b;
@@ -261,7 +261,7 @@ public:
message_parser<true, dynamic_body, fields> p;
error_code ec;
async_read(ss, b, p, do_yield[ec]);
BEAST_EXPECT(ec == boost::asio::error::eof);
BEAST_EXPECT(ec == http::error::end_of_stream);
}
}