diff --git a/docs b/docs index b6152298e..733a119e0 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit b6152298e377fe696e67971d889833fa1f36da8e +Subproject commit 733a119e0cd84382fd46c51e5ada2b19e1a296a1 diff --git a/src/HttpProxy.php b/src/HttpProxy.php index 66a418b18..0e9286996 100644 --- a/src/HttpProxy.php +++ b/src/HttpProxy.php @@ -102,7 +102,7 @@ class HttpProxy implements \danog\MadelineProto\Proxy { $line = $lastchar = $curchar = ''; while ($lastchar.$curchar !== "\r\n") { - $line .= $curchar; + $line .= $lastchar; $lastchar = $curchar; $curchar = $this->sock->read(1); } diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index df0255c75..da5535eb6 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -362,7 +362,7 @@ class Connection { $line = $lastchar = $curchar = ''; while ($lastchar.$curchar !== "\r\n") { - $line .= $curchar; + $line .= $lastchar; $lastchar = $curchar; $curchar = $this->sock->read(1); }