Skip to content

Commit

Permalink
Merge pull request #426 from alexandre-daubois/fix-server-name
Browse files Browse the repository at this point in the history
Remove port from `$_SERVER['SERVER_NAME']`
  • Loading branch information
fabpot committed Feb 9, 2024
2 parents dbe6914 + 425e365 commit c02c834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit c02c834

Please sign in to comment.