mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fix #459
This commit is contained in:
parent
58909f5917
commit
49c4c2f9c1
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user