From 0c77218b70d89256a832a4e02977a5f601559987 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 20 Oct 2018 11:37:13 -0400 Subject: [PATCH] 404 instead of redirect --- contrib/backends/srndv2/src/srnd/null_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/null_cache.go b/contrib/backends/srndv2/src/srnd/null_cache.go index a9722cd..b5bbcec 100644 --- a/contrib/backends/srndv2/src/srnd/null_cache.go +++ b/contrib/backends/srndv2/src/srnd/null_cache.go @@ -66,7 +66,7 @@ func (self *nullHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { sfw := strings.Count(r.URL.RawQuery, "sfw=1") > 0 i18n := self.GetI18N(r) if i18n == nil { - http.Redirect(w, r, r.URL.Path, http.StatusFound) + w.WriteHeader(http.StatusNotFound) return } path := r.URL.Path