mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Try to fix HTTP gzip decoding
Sometimes gzip decoding causes garbage on screen. With this patch garbage will go away. It inverts the logic. Now is simpler.
This commit is contained in:
parent
6815be6964
commit
583649e807
@ -1030,7 +1030,7 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
|
||||
*new_len = 0;
|
||||
break; /* Loop prevention (bug 517), is this correct ? --Zas */
|
||||
}
|
||||
} while (!(!len && did_read != to_read));
|
||||
} while (len || did_read == BIG_READ);
|
||||
|
||||
shutdown_connection_stream(conn);
|
||||
return output;
|
||||
|
Loading…
Reference in New Issue
Block a user