diff --git a/Titanium.Web.Proxy/Http/HttpWebClient.cs b/Titanium.Web.Proxy/Http/HttpWebClient.cs index a229af903..6a4e42536 100644 --- a/Titanium.Web.Proxy/Http/HttpWebClient.cs +++ b/Titanium.Web.Proxy/Http/HttpWebClient.cs @@ -115,8 +115,10 @@ internal async Task ReceiveResponse() if (string.IsNullOrEmpty(httpResult[0])) { - await ServerConnection.StreamReader.ReadLineAsync(); + //Empty content in first-line, try again + httpResult = (await ServerConnection.StreamReader.ReadLineAsync()).Split(ProxyConstants.SpaceSplit, 3); } + var httpVersion = httpResult[0].Trim().ToLower(); var version = new Version(1,1);