From e0ceb0f39cce91ad5450fdb6523866b7b7ed84b5 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 18 Apr 2018 16:19:58 +0200 Subject: [PATCH] HTTP fixes --- docs | 2 +- src/HttpProxy.php | 2 +- src/danog/MadelineProto/Connection.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs b/docs index b6152298..733a119e 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit b6152298e377fe696e67971d889833fa1f36da8e +Subproject commit 733a119e0cd84382fd46c51e5ada2b19e1a296a1 diff --git a/src/HttpProxy.php b/src/HttpProxy.php index 66a418b1..0e928699 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 df0255c7..da5535eb 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); }