diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-01-31 11:16:00 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-01-31 12:42:31 +0100 |
commit | 1477d0ba90acd3aa464556d95edab396a518016e (patch) | |
tree | 8aa29ac970a88a8d582bac576a575d3c631cb5d0 /commands/server.go | |
parent | dd37163f5a73b7bda81227244b1a942751026242 (diff) |
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
Diffstat (limited to 'commands/server.go')
-rw-r--r-- | commands/server.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go index da6313f17..332e35c01 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) |