mirror of https://github.com/MISP/MISP
chg: [sync] Do not decode body if is empty
parent
6f74097c37
commit
27e58bbb2d
|
@ -32,6 +32,10 @@ class HttpSocketResponseExtended extends HttpSocketResponse
|
|||
{
|
||||
parent::parseResponse($message);
|
||||
|
||||
if ($this->body === '') {
|
||||
return; // skip decoding body if is empty
|
||||
}
|
||||
|
||||
$contentEncoding = $this->getHeader('Content-Encoding');
|
||||
if ($contentEncoding === 'gzip' && function_exists('gzdecode')) {
|
||||
$this->body = gzdecode($this->body);
|
||||
|
|
Loading…
Reference in New Issue