aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-12-08 21:19:58 +0300
committerRblSb <msrblsb@gmail.com>2020-12-08 21:19:58 +0300
commitac6a6d069b70d19c93f034832630a49f869257fb (patch)
treecb7cbc1c318a3c3261513bc11e4b79f521f054bb /src/server/HttpServer.hx
parent6f3dbd657ed0f05768a55ce9dfecca9881c70eea (diff)
Fix proxy urls with ports
closes RblSb/SyncTube-octosubs#1
Diffstat (limited to 'src/server/HttpServer.hx')
-rw-r--r--src/server/HttpServer.hx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx
index 5a7c6ee..c81a464 100644
--- a/src/server/HttpServer.hx
+++ b/src/server/HttpServer.hx
@@ -163,6 +163,7 @@ class HttpServer {
new URL(js.Node.global.decodeURI(url));
} catch (e) return null;
if (url.host == req.headers["host"]) return null;
+ if (url.host.contains(":")) url.host = url.host.split(":")[0];
final options = {
host: url.host,
port: Std.parseInt(url.port),
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage