From 831dee81f7e2da0b7494e0aa304bf679c9eb79f7 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 30 Dec 2020 17:28:03 +0000 Subject: [PATCH] easier subclassing of Http --- src/Helper/Http.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']); } -- 2.43.0