mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
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:
parent
dd37163f5a
commit
1477d0ba90
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue