HTTP fixes

This commit is contained in:
Daniil Gentili 2018-04-18 16:19:58 +02:00
parent 6c84ada369
commit e0ceb0f39c
3 changed files with 3 additions and 3 deletions

2
docs

@ -1 +1 @@
Subproject commit b6152298e377fe696e67971d889833fa1f36da8e Subproject commit 733a119e0cd84382fd46c51e5ada2b19e1a296a1

View File

@ -102,7 +102,7 @@ class HttpProxy implements \danog\MadelineProto\Proxy
{ {
$line = $lastchar = $curchar = ''; $line = $lastchar = $curchar = '';
while ($lastchar.$curchar !== "\r\n") { while ($lastchar.$curchar !== "\r\n") {
$line .= $curchar; $line .= $lastchar;
$lastchar = $curchar; $lastchar = $curchar;
$curchar = $this->sock->read(1); $curchar = $this->sock->read(1);
} }

View File

@ -362,7 +362,7 @@ class Connection
{ {
$line = $lastchar = $curchar = ''; $line = $lastchar = $curchar = '';
while ($lastchar.$curchar !== "\r\n") { while ($lastchar.$curchar !== "\r\n") {
$line .= $curchar; $line .= $lastchar;
$lastchar = $curchar; $lastchar = $curchar;
$curchar = $this->sock->read(1); $curchar = $this->sock->read(1);
} }