Set X-Gitea-Debug header once (#23361) (#23381)

This commit is contained in:
Giteabot authored and GitHub committed 2023-03-09 06:33:05 +08:00
1 parent 54c674c936
commit 87c31c2ffe
6 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ func Recovery(ctx goctx.Context) func(next http.Handler) http.Handler {
store["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 {