mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fix #459
This commit is contained in:
parent
58909f5917
commit
49c4c2f9c1
1 changed files with 3 additions and 1 deletions
|
@ -2114,7 +2114,9 @@ inline ssize_t write_content_chunked(Stream &strm,
|
|||
data_available = false;
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue