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
|
@ -30,6 +30,9 @@ func countFormalHeaders(h http.Header) (c int) {
|
|||
if strings.HasPrefix(k, "X-Gitea-") {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(k, "X-Forgejo-") {
|
||||
continue
|
||||
}
|
||||
c++
|
||||
}
|
||||
return c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue