diff options
Diffstat (limited to 'src')
| -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), |
