Use message::need_eof in example servers

This commit is contained in:
Vinnie Falco committed 2017-10-25 18:48:19 -07:00
1 parent 1754d5427d
commit 2555942010
12 files changed
+24 -21

No files matched your search

@@ -232,7 +232,7 @@ struct send_lambda
operator()(http::message<isRequest, Body, Fields>&& msg) const
{
// Determine if we should close the connection after
close_ = ! msg.keep_alive();
close_ = msg.need_eof();
// We need the serializer here because the serializer requires
// a non-const file_body, and the message oriented version of