diff options
author | Giteabot <teabot@gitea.io> | 2023-03-08 17:33:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 06:33:05 +0800 |
commit | 87c31c2ffef29cd7b1cb5b33964071b733a8a700 (patch) | |
tree | 011c45507448217b74041320ac3c04bbd4c6fade /routers/install | |
parent | 54c674c93644093a1dd693b50c743cdc6120b6a7 (diff) | |
download | gitea-87c31c2ffef29cd7b1cb5b33964071b733a8a700.tar.gz gitea-87c31c2ffef29cd7b1cb5b33964071b733a8a700.zip |
Set `X-Gitea-Debug` header once (#23361) (#23381)
Diffstat (limited to 'routers/install')
-rw-r--r-- | routers/install/routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install/routes.go b/routers/install/routes.go index a8efc92fe1..82d9c34b41 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.go @@ -64,7 +64,7 @@ func installRecovery(ctx goctx.Context) func(next http.Handler) http.Handler { "SignedUserName": "", } - httpcache.AddCacheControlToHeader(w.Header(), 0, "no-transform") + httpcache.SetCacheControlInHeader(w.Header(), 0, "no-transform") w.Header().Set(`X-Frame-Options`, setting.CORSConfig.XFrameOptions) if !setting.IsProd { |