fix: restore x-forwarded headers

This commit is contained in:
Oleh Astappiev 2024-12-08 21:01:09 +01:00
parent 254effa8e5
commit f3ec9005f7
No known key found for this signature in database
GPG key ID: 37D7AC22589E9632
3 changed files with 81 additions and 8 deletions

View file

@ -98,11 +98,3 @@ func parseAcceptLanguage(acceptLanguage string) string {
}
return matches[0][1]
}
func copyHeaders(dst, src http.Header, headersToCopy []string) {
for _, key := range headersToCopy {
if values := src.Values(key); len(values) > 0 {
dst[key] = values
}
}
}