all repos — homestead @ f679091e633c8b0d20f223dd0ce8dce85567b502

Code for my website

appease the linter

Alan Pearce
commit

f679091e633c8b0d20f223dd0ce8dce85567b502

parent

477702a8fedd215586025ba7f27f9eed9970dfac

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/website/mux.gointernal/website/mux.go
@@ -45,7 +45,7 @@ func (website *Website) ServeHTTP(w http.ResponseWriter, r *http.Request) *ihttp.Error {
urlPath, shouldRedirect := website.reader.CanonicalisePath(r.URL.Path) if shouldRedirect { website.counter.Count(r, "302") - http.Redirect(w, r, urlPath, 302) + http.Redirect(w, r, urlPath, http.StatusFound) return nil }