chore: Типы
This commit is contained in:
parent
3169ea2032
commit
08defbd046
5 changed files with 12 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue