diff options
-rw-r--r-- | inc/HTTPClient.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 71b6326ef..eea01f9d5 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -459,6 +459,10 @@ class HTTPClient { $this->resp_headers['content-encoding'] == 'gzip' && strlen($r_body) > 10 && substr($r_body,0,3)=="\x1f\x8b\x08"){ $this->resp_body = @gzinflate(substr($r_body, 10)); + if($this->resp_body === false){ + $this->error = 'Failed to decompress gzip encoded content'; + $this->resp_body = $r_body; + } }else{ $this->resp_body = $r_body; } |