mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 07:45:41 +00:00
fix http req over https
This commit is contained in:
@@ -2,8 +2,9 @@ var http = require("http"),
|
||||
https = require("https");
|
||||
|
||||
function handler(req,userRes){
|
||||
console.log(req);
|
||||
|
||||
var ifHttps = !!req.connection.encrypted;
|
||||
var ifHttps = !!req.connection.encrypted && !/http:/.test(req.url);
|
||||
|
||||
var options = {
|
||||
hostname : req.headers.host,
|
||||
|
Reference in New Issue
Block a user