mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fix #846
This commit is contained in:
parent
ae6cf70bc4
commit
88411a1f52
1 changed files with 1 additions and 1 deletions
|
@ -2484,7 +2484,7 @@ public:
|
|||
strm_.next_out = reinterpret_cast<Bytef *>(buff.data());
|
||||
|
||||
ret = deflate(&strm_, flush);
|
||||
assert(ret != Z_STREAM_ERROR);
|
||||
if (ret == Z_STREAM_ERROR) { return false; }
|
||||
|
||||
if (!callback(buff.data(), buff.size() - strm_.avail_out)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue