mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
data_compress: fix problem with decompression after recent change
Fix bug 834 (various gzip-encoded documents were being truncated), which I introduced with commit e441361f2c51c0ece87afc3ed68e5c6ea5522f13. Thanks to Witek for reporting the bug, Kalle for determining the problematic commit, and Jonas for letting me know about the bug report(!).
This commit is contained in:
parent
74e2b217b2
commit
810a1fc591
@ -1024,7 +1024,9 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
|
||||
return output;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
if (state == FINISHING) {
|
||||
/* state is FINISHING. Set to_read to some nice, big
|
||||
* value to empty the encoded output queue by reading
|
||||
* big chunks from it. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user