Skip to content

Commit 88411a1

Browse files
committed
Fix #846
1 parent ae6cf70 commit 88411a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,7 @@ class gzip_compressor : public compressor {
24842484
strm_.next_out = reinterpret_cast<Bytef *>(buff.data());
24852485

24862486
ret = deflate(&strm_, flush);
2487-
assert(ret != Z_STREAM_ERROR);
2487+
if (ret == Z_STREAM_ERROR) { return false; }
24882488

24892489
if (!callback(buff.data(), buff.size() - strm_.avail_out)) {
24902490
return false;

0 commit comments

Comments
 (0)