Archived
1
0

404 instead of redirect

This commit is contained in:
Jeff 2018-10-20 11:37:13 -04:00
parent b4de45569e
commit 0c77218b70

View File

@ -66,7 +66,7 @@ func (self *nullHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
sfw := strings.Count(r.URL.RawQuery, "sfw=1") > 0 sfw := strings.Count(r.URL.RawQuery, "sfw=1") > 0
i18n := self.GetI18N(r) i18n := self.GetI18N(r)
if i18n == nil { if i18n == nil {
http.Redirect(w, r, r.URL.Path, http.StatusFound) w.WriteHeader(http.StatusNotFound)
return return
} }
path := r.URL.Path path := r.URL.Path