From: gggeek Date: Wed, 30 Dec 2020 17:28:03 +0000 (+0000) Subject: easier subclassing of Http X-Git-Tag: plcapi-7.1-0~3^2~92 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=831dee81f7e2da0b7494e0aa304bf679c9eb79f7;p=plcapi.git easier subclassing of Http --- diff --git a/src/Helper/Http.php b/src/Helper/Http.php index abfaa85..10e4fed 100644 --- a/src/Helper/Http.php +++ b/src/Helper/Http.php @@ -13,6 +13,7 @@ class Http * @param string $buffer the string to be decoded * * @return string + * @internal this function will become protected in the future */ public static function decodeChunked($buffer) { @@ -217,7 +218,7 @@ class Http // Decode chunked encoding sent by http 1.1 servers if (isset($httpResponse['headers']['transfer-encoding']) && $httpResponse['headers']['transfer-encoding'] == 'chunked') { - if (!$data = Http::decodeChunked($data)) { + if (!$data = static::decodeChunked($data)) { Logger::instance()->errorLog('XML-RPC: ' . __METHOD__ . ': errors occurred when trying to rebuild the chunked data received from server'); throw new \Exception(PhpXmlRpc::$xmlrpcstr['dechunk_fail'], PhpXmlRpc::$xmlrpcerr['dechunk_fail']); }