From 583649e8074c9f9c908718fd5c295d80ed1fa172 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 15 Nov 2005 22:23:27 +0100 Subject: [PATCH] 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. --- src/protocol/http/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c index f63dd12b9..feacccdd3 100644 --- a/src/protocol/http/http.c +++ b/src/protocol/http/http.c @@ -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;