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

fix #350
This commit is contained in:
Vinnie Falco
2017-05-10 10:03:51 -07:00
parent f2d825594e
commit b7184f3a69
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);
}
}