diff options
Diffstat (limited to 'internal/server/server.go')
-rw-r--r-- | internal/server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 9c7b907..0b67a69 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -190,7 +190,7 @@ func New(runtimeConfig *Config, log *log.Logger) (*Server, error) { replace := "${1}." + config.Domains[0] loggingMux.Handle(config.BaseURL.Hostname()+"/", mux) loggingMux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - switch true { + switch { case slices.Contains(config.Domains, r.Host): path, _ := website.CanonicalisePath(r.URL.Path) http.Redirect( |