|
@@ -387,6 +387,11 @@ namespace Shadowsocks.Controller.Service |
|
|
|
|
|
|
|
|
Logging.Debug(line); |
|
|
Logging.Debug(line); |
|
|
|
|
|
|
|
|
|
|
|
if (!line.StartsWith("Proxy-")) |
|
|
|
|
|
{ |
|
|
|
|
|
_headers.Enqueue(line); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (_requestLineCount == 0) |
|
|
if (_requestLineCount == 0) |
|
|
{ |
|
|
{ |
|
|
var m = HttpRequestHeaderRegex.Match(line); |
|
|
var m = HttpRequestHeaderRegex.Match(line); |
|
@@ -413,21 +418,14 @@ namespace Shadowsocks.Controller.Service |
|
|
_targetPort = 80; |
|
|
_targetPort = 80; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_headers.Enqueue(line); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
if (line.IsNullOrEmpty()) |
|
|
if (line.IsNullOrEmpty()) |
|
|
{ |
|
|
{ |
|
|
_headers.Enqueue(""); |
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
if (!line.StartsWith("Proxy-")) |
|
|
|
|
|
{ |
|
|
|
|
|
_headers.Enqueue(line); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!_isConnect) |
|
|
if (!_isConnect) |
|
|
{ |
|
|
{ |
|
|