mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-20 17:12:25 +00:00
[BRANDING] add X-Forgejo-* headers
This commit is contained in:
parent
b4665b0796
commit
de86c5e6ef
6 changed files with 25 additions and 2 deletions
|
@ -31,6 +31,7 @@ func AddCacheControlToHeader(h http.Header, maxAge time.Duration, additionalDire
|
|||
|
||||
// to remind users they are using non-prod setting.
|
||||
h.Add("X-Gitea-Debug", "RUN_MODE="+setting.RunMode)
|
||||
h.Add("X-Forgejo-Debug", "RUN_MODE="+setting.RunMode)
|
||||
}
|
||||
|
||||
h.Set("Cache-Control", strings.Join(append(directives, additionalDirectives...), ", "))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue