Commit 8d6b3545 authored by Ian Roddis's avatar Ian Roddis

Making flush() default when writing a chunked of response to ResponseStream.

parent b08fdb9a
......@@ -321,6 +321,7 @@ public:
os << std::hex << sz << crlf;
os.write(data, sz);
os << crlf;
flush();
return sz;
}
......@@ -377,6 +378,7 @@ ResponseStream& operator<<(ResponseStream& stream, const T& val) {
std::ostream os(&stream.buf_);
os << std::hex << size(val) << crlf;
os << val << crlf;
stream.flush();
return stream;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment