mirror of https://github.com/aria2/aria2
Don't throw exception if Z_BUF_ERROR is encountered in
GZipDecodingFilter.pull/1/head
parent
34207cda01
commit
74a049ddfc
|
@ -101,7 +101,7 @@ ssize_t GZipDecodingStreamFilter::transform
|
||||||
|
|
||||||
if(ret == Z_STREAM_END) {
|
if(ret == Z_STREAM_END) {
|
||||||
finished_ = true;
|
finished_ = true;
|
||||||
} else if(ret != Z_OK) {
|
} else if(ret != Z_OK && ret != Z_BUF_ERROR) {
|
||||||
throw DL_ABORT_EX(fmt("libz::inflate() failed. cause:%s",
|
throw DL_ABORT_EX(fmt("libz::inflate() failed. cause:%s",
|
||||||
strm_->msg));
|
strm_->msg));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue