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
This commit is contained in:
Bjørn Erik Pedersen 2023-01-31 11:16:00 +01:00
parent dd37163f5a
commit 1477d0ba90

View file

@ -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)