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
|
requestURI = redirect.To
|
||||||
r = r2
|
r = r2
|
||||||
}
|
}
|
||||||
fallthrough
|
|
||||||
default:
|
default:
|
||||||
w.Header().Set("Content-Type", "")
|
w.Header().Set("Content-Type", "")
|
||||||
http.Redirect(w, r, redirect.To, redirect.Status)
|
http.Redirect(w, r, redirect.To, redirect.Status)
|
||||||
|
|
Loading…
Add table
Reference in a new issue