forked from forgejo/forgejo
[BRANDING] add X-Forgejo-* headers
(cherry picked from commit de86c5e6ef
)
This commit is contained in:
parent
b032259089
commit
fd245037ea
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