aboutsummaryrefslogtreecommitdiff
path: root/internal/headers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/headers.go')
-rw-r--r--internal/headers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/headers.go b/internal/headers.go
index 5c6a218..bdb5e9e 100644
--- a/internal/headers.go
+++ b/internal/headers.go
@@ -13,6 +13,7 @@ import (
// UnchangingCache sets the Cache-Control header to cache a response for 1 year if
// and only if the application is compiled in "release" mode by Docker.
func UnchangingCache(next http.Handler) http.Handler {
+ //goland:noinspection GoBoolExpressions
if anubis.Version == "devel" {
return next
}
@@ -68,11 +69,10 @@ func XForwardedForToXRealIP(next http.Handler) http.Handler {
func NoStoreCache(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store")
- next.ServeHTTP(w, r)
+ next.ServeHTTP(w, r)
})
}
-
// Do not allow browsing directory listings in paths that end with /
func NoBrowsing(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {