1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -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 e441361f2c.

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:
Miciah Dashiel Butler Masters 2006-11-10 15:57:23 +00:00 committed by Miciah Dashiel Butler Masters
parent 74e2b217b2
commit 810a1fc591

View File

@ -1024,7 +1024,9 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
return output; return output;
} }
} }
} else { }
if (state == FINISHING) {
/* state is FINISHING. Set to_read to some nice, big /* state is FINISHING. Set to_read to some nice, big
* value to empty the encoded output queue by reading * value to empty the encoded output queue by reading
* big chunks from it. */ * big chunks from it. */