branch | 0.11 |
changeset 10954 | a23328c46389 |
parent 9628 | cc9dff0212f4 |
child 10955 | f4215f8baa5d |
--- a/net/http/server.lua Mon Jun 22 14:56:44 2020 +0200 +++ b/net/http/server.lua Tue Jun 23 15:39:31 2020 +0200 @@ -207,7 +207,7 @@ }; conn._http_open_response = response; - local host = (request.headers.host or ""):match("[^:]+"); + local host = (request.headers.host or ""):gsub(":%d+$",""); -- Some sanity checking local err_code, err;