Browse Source

Revert "Refine header parse"

This reverts commit f9e39fdd1d.
tags/3.4.2
noisyfox 8 years ago
parent
commit
5e973adb77
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      shadowsocks-csharp/Controller/Service/Http2Socks5.cs

+ 7
- 5
shadowsocks-csharp/Controller/Service/Http2Socks5.cs View File

@@ -387,11 +387,6 @@ namespace Shadowsocks.Controller.Service

Logging.Debug(line);

if (!line.StartsWith("Proxy-"))
{
_headers.Enqueue(line);
}

if (_requestLineCount == 0)
{
var m = HttpRequestHeaderRegex.Match(line);
@@ -418,14 +413,21 @@ namespace Shadowsocks.Controller.Service
_targetPort = 80;
}
}

_headers.Enqueue(line);
}
}
else
{
if (line.IsNullOrEmpty())
{
_headers.Enqueue("");
return true;
}
if (!line.StartsWith("Proxy-"))
{
_headers.Enqueue(line);
}

if (!_isConnect)
{


Loading…
Cancel
Save