mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Fix #273
This commit is contained in:
parent
8f3dbf7f21
commit
880f7fa62b
2 changed files with 16 additions and 1 deletions
|
@ -1475,7 +1475,7 @@ public:
|
|||
if (!callback(buff.data(), buff.size() - strm.avail_out)) { return false; }
|
||||
} while (strm.avail_out == 0);
|
||||
|
||||
return ret == Z_STREAM_END;
|
||||
return ret == Z_OK || ret == Z_STREAM_END;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue