Skip to content

Commit e654986

Browse files
committed
Merge pull request cpp-netlib#579 from gns333/0.12-devel
Fix for issue cpp-netlib#536 "hello_world_client can't commuicate with the hell…
2 parents 60d35b5 + 2babeb4 commit e654986

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boost/network/protocol/http/server/async_connection.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,14 @@ struct async_connection
635635
write_vec_impl(seq, callback, temporaries, buffers);
636636
};
637637
if (!headers_already_sent && !headers_in_progress) {
638+
typedef constants<Tag> consts;
639+
{
640+
std::ostream stream(&headers_buffer);
641+
stream << consts::http_slash() << 1 << consts::dot() << 1
642+
<< consts::space() << status << consts::space()
643+
<< status_message(status) << consts::crlf();
644+
stream << consts::crlf();
645+
}
638646
write_headers_only(continuation);
639647
return;
640648
}

0 commit comments

Comments
 (0)