From 425e36590875ad4cbd3b9916c3aff59cd167ff98 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 6 Feb 2024 10:59:13 +0100 Subject: [PATCH] Remove port from `$_SERVER['SERVER_NAME']` --- local/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/http/http.go b/local/http/http.go index 031d3908..80ea7072 100644 --- a/local/http/http.go +++ b/local/http/http.go @@ -232,7 +232,7 @@ func (s *Server) Handler(w http.ResponseWriter, r *http.Request) { } env := map[string]string{ "SERVER_PORT": s.serverPort, - "SERVER_NAME": r.Host, + "SERVER_NAME": strings.Split(r.Host, ":")[0], "SERVER_PROTOCOL": r.Proto, "SERVER_SOFTWARE": fmt.Sprintf("symfony-cli/%s", s.Appversion), }