Skip to content

Commit

Permalink
commands: Fix server url rewrites (http status 200)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bep committed Jan 31, 2023
1 parent dd37163 commit 1477d0b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion commands/server.go
Expand Up @@ -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)
Expand Down

0 comments on commit 1477d0b

Please sign in to comment.