chore: Типы

This commit is contained in:
origami11@yandex.ru 2025-12-04 16:39:24 +03:00
parent 3169ea2032
commit 08defbd046
5 changed files with 12 additions and 6 deletions

View file

@ -47,7 +47,7 @@ class HttpResponse
if (isset($this->param['Transfer-Encoding']) && $this->param['Transfer-Encoding'] == 'chunked') {
//$this->data = substr($this->response, $this->offset);
$index = hexdec($this->getLine());
$index = (int)hexdec($this->getLine());
$chunk = [];
while ($index > 0) {
$chunk [] = substr($this->response, $this->offset, $index);