summaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-03-08 17:33:05 -0500
committerGitHub <noreply@github.com>2023-03-09 06:33:05 +0800
commit87c31c2ffef29cd7b1cb5b33964071b733a8a700 (patch)
tree011c45507448217b74041320ac3c04bbd4c6fade /routers/install
parent54c674c93644093a1dd693b50c743cdc6120b6a7 (diff)
downloadgitea-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.go2
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 {