From 1477d0ba90acd3aa464556d95edab396a518016e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 31 Jan 2023 11:16:00 +0100 Subject: [PATCH] commands: Fix server url rewrites (http status 200) Broken by me in Hugo 0.103.0 it seems. A little bit mysterious as it has worked for me after that, but started to fail just recently. Closes #10668 --- commands/server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/server.go b/commands/server.go index da6313f17b9..332e35c01b9 100644 --- a/commands/server.go +++ b/commands/server.go @@ -449,7 +449,6 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string requestURI = redirect.To r = r2 } - fallthrough default: w.Header().Set("Content-Type", "") http.Redirect(w, r, redirect.To, redirect.Status)