mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
bugfix for intercepting some https url
This commit is contained in:
@@ -22,7 +22,7 @@ function userRequestHandler(req,userRes){
|
||||
var host = req.headers.host,
|
||||
urlPattern = url.parse(req.url),
|
||||
path = urlPattern.path,
|
||||
protocol = (!!req.connection.encrypted && !/http:/.test(req.url)) ? "https" : "http",
|
||||
protocol = (!!req.connection.encrypted && !/^http:/.test(req.url)) ? "https" : "http",
|
||||
resourceInfo,
|
||||
resourceInfoId = -1,
|
||||
reqData;
|
||||
|
||||
Reference in New Issue
Block a user