Commit e66bcfbe authored by Honfika's avatar Honfika

Trim is not needed because it is splitted on the space characters (and it...

Trim is not needed because it is splitted on the space characters (and it should not have any other whitespace character). ToLower is not needed because IgnoreCase equals is used.
parent 0a208f3a
...@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.Http ...@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.Http
httpResult = (await ServerConnection.StreamReader.ReadLineAsync()).Split(ProxyConstants.SpaceSplit, 3); httpResult = (await ServerConnection.StreamReader.ReadLineAsync()).Split(ProxyConstants.SpaceSplit, 3);
} }
var httpVersion = httpResult[0].Trim().ToLower(); var httpVersion = httpResult[0];
var version = HttpHeader.Version11; var version = HttpHeader.Version11;
if (string.Equals(httpVersion, "HTTP/1.0", StringComparison.OrdinalIgnoreCase)) if (string.Equals(httpVersion, "HTTP/1.0", StringComparison.OrdinalIgnoreCase))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment