1
0
Fork 0
forked from forgejo/forgejo

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

This commit is contained in:
Giteabot 2023-03-08 17:33:05 -05:00 committed by GitHub
parent 54c674c936
commit 87c31c2ffe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View file

@ -244,7 +244,7 @@ func APIContexter() func(http.Handler) http.Handler {
}
}
httpcache.AddCacheControlToHeader(ctx.Resp.Header(), 0, "no-transform")
httpcache.SetCacheControlInHeader(ctx.Resp.Header(), 0, "no-transform")
ctx.Resp.Header().Set(`X-Frame-Options`, setting.CORSConfig.XFrameOptions)
ctx.Data["Context"] = &ctx