This commit is contained in:
yhirose 2020-05-10 20:39:16 -04:00
parent 58909f5917
commit 49c4c2f9c1

View File

@ -2114,7 +2114,9 @@ inline ssize_t write_content_chunked(Stream &strm,
data_available = false; data_available = false;
written_length = strm.write("0\r\n\r\n"); written_length = strm.write("0\r\n\r\n");
}; };
data_sink.is_writable = [&](void) { return strm.is_writable(); }; data_sink.is_writable = [&](void) {
return strm.is_writable() && written_length >= 0;
};
content_provider(offset, 0, data_sink); content_provider(offset, 0, data_sink);