diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/HttpServer.hx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx index c81a464..0388c28 100644 --- a/src/server/HttpServer.hx +++ b/src/server/HttpServer.hx @@ -163,9 +163,8 @@ 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, + host: url.hostname, port: Std.parseInt(url.port), path: url.pathname + url.search, method: req.method |
