diff --git a/src/Connection/HttpResponse.php b/src/Connection/HttpResponse.php index a16120b..fad35ab 100644 --- a/src/Connection/HttpResponse.php +++ b/src/Connection/HttpResponse.php @@ -52,7 +52,7 @@ class HttpResponse while ($index > 0) { $chunk [] = substr($this->response, $this->offset, $index); $this->offset += $index; - $index = hexdec($this->getLine()); + $index = (int)hexdec($this->getLine()); } $this->data = implode("", $chunk);