Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for issue #536 "hello_world_client can't commuicate with the hell…
…o_world_async_server_with_work_queue"
  • Loading branch information
gns333 committed Jan 5, 2016
commit 2babeb4b114be2e4e2ee47303b8ae51f30b32e4e
8 changes: 8 additions & 0 deletions boost/network/protocol/http/server/async_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ struct async_connection
write_vec_impl(seq, callback, temporaries, buffers);
};
if (!headers_already_sent && !headers_in_progress) {
typedef constants<Tag> consts;
{
std::ostream stream(&headers_buffer);
stream << consts::http_slash() << 1 << consts::dot() << 1
<< consts::space() << status << consts::space()
<< status_message(status) << consts::crlf();
stream << consts::crlf();
}
write_headers_only(continuation);
return;
}
Expand Down