diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/HTTPClient.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 3d1ef3705..0c3b4f435 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -158,6 +158,14 @@ class HTTPClient { $this->error = ''; $this->status = 0; + // don't accept gzip if truncated bodies might occur + if($this->max_bodysize && + !$this->max_bodysize_abort && + $this->headers['Accept-encoding'] == 'gzip'){ + unset($this->headers['Accept-encoding']); + } + + $httpdata = array('url' => $url, 'data' => $data, 'method' => $method); |