- rerun only on Z_BUF_ERROR
authorMichael Wallner <mike@php.net>
Tue, 11 Oct 2005 17:16:15 +0000 (17:16 +0000)
committerMichael Wallner <mike@php.net>
Tue, 11 Oct 2005 17:16:15 +0000 (17:16 +0000)
http_encoding_api.c

index 69b6721bdc4df0fb76d9fce2a419052a49d19ef5..b87f1c08ed3d420064a2675eccb8f1c1196e77bb 100644 (file)
@@ -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;