Оптимизации и исправления топов.
This commit is contained in:
parent
77fa3dbd5e
commit
0f4b2fb722
25 changed files with 109 additions and 53 deletions
|
|
@ -36,12 +36,12 @@ class Connection_HttpResponse
|
|||
|
||||
if (isset($this->param['Transfer-Encoding']) && $this->param['Transfer-Encoding'] == 'chunked') {
|
||||
//$this->data = substr($this->response, $this->offset);
|
||||
$line = hexdec($this->getLine());
|
||||
$index = hexdec($this->getLine());
|
||||
$chunk = array();
|
||||
while ($line > 0) {
|
||||
$chunk [] = substr($this->response, $this->offset, $line);
|
||||
$this->offset += $line;
|
||||
$line = hexdec($this->getLine());
|
||||
while ($index > 0) {
|
||||
$chunk [] = substr($this->response, $this->offset, $index);
|
||||
$this->offset += $index;
|
||||
$index = hexdec($this->getLine());
|
||||
}
|
||||
|
||||
$this->data = implode("", $chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue