diff options
| author | RblSb <msrblsb@gmail.com> | 2020-12-08 21:19:58 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-12-08 21:19:58 +0300 |
| commit | ac6a6d069b70d19c93f034832630a49f869257fb (patch) | |
| tree | cb7cbc1c318a3c3261513bc11e4b79f521f054bb /src/server/HttpServer.hx | |
| parent | 6f3dbd657ed0f05768a55ce9dfecca9881c70eea (diff) | |
Fix proxy urls with ports
closes RblSb/SyncTube-octosubs#1
Diffstat (limited to 'src/server/HttpServer.hx')
| -rw-r--r-- | src/server/HttpServer.hx | 1 |
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), |
