diff options
| author | RblSb <msrblsb@gmail.com> | 2020-05-13 06:44:54 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-05-13 06:44:54 +0300 |
| commit | 2d82ca5f1049fb332b521691c29b9d789d08f690 (patch) | |
| tree | 829e2c8a22c00fd9bf3c222e8f8a1cfcef372432 /build/server.js | |
| parent | 28a1d1c271dd722dc36cebc5b61f87d80138dba3 (diff) | |
Add hotkeys
Diffstat (limited to 'build/server.js')
| -rw-r--r-- | build/server.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/server.js b/build/server.js index 7e5c7f8..5d559b7 100644 --- a/build/server.js +++ b/build/server.js @@ -3285,7 +3285,9 @@ server_HttpServer.proxyUrl = function(req,res) { if(url1.host == req.headers["host"]) { return false; } - var proxy = (url1.protocol == "https:" ? js_node_Https.request : js_node_Http.request)({ host : url1.host, port : Std.parseInt(url1.port), path : url1.pathname + url1.search, method : req.method},function(proxyRes) { + var url2 = url1.host; + var options = Std.parseInt(url1.port); + var proxy = (url1.protocol == "https:" ? js_node_Https.request : js_node_Http.request)({ host : url2, port : options, path : url1.pathname + url1.search, method : req.method},function(proxyRes) { res.writeHead(proxyRes.statusCode,proxyRes.headers); return proxyRes.pipe(res,{ end : true}); }); |
