From a04675773914229e067f48ad0912f3cf70cffdcf Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 11 Oct 2005 17:16:15 +0000 Subject: [PATCH 1/1] - rerun only on Z_BUF_ERROR --- http_encoding_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_encoding_api.c b/http_encoding_api.c index 69b6721..b87f1c0 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -297,7 +297,7 @@ PHP_HTTP_API STATUS _http_encoding_inflate(const char *data, size_t data_len, ch } } } - } while (max < HTTP_GZMAXTRY); + } while (max < HTTP_GZMAXTRY && status == Z_BUF_ERROR); http_error_ex(HE_WARNING, HTTP_E_ENCODING, "Could not inflate data: %s", zError(status)); return FAILURE; -- 2.30.2