Fixed chunked transfer encoding
This commit is contained in:
parent
ed6a7f6e06
commit
fc607f18b2
@ -411,9 +411,9 @@ class Connection
|
||||
$read = $this->read((int) $headers['content-length']);
|
||||
} elseif (isset($headers['transfer-encoding']) && $headers['transfer-encoding'] === 'chunked') {
|
||||
do {
|
||||
$length = hexdec($this->read_http_line($res));
|
||||
$length = hexdec($this->read_http_line());
|
||||
$read .= $this->read($length);
|
||||
$this->read_http_line($res);
|
||||
$this->read_http_line();
|
||||
} while ($length);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright 2016-2018 Daniil Gentili
|
||||
(https://daniil.it)
|
||||
|
Loading…
Reference in New Issue
Block a user