fix: restore x-forwarded headers
This commit is contained in:
parent
254effa8e5
commit
f3ec9005f7
3 changed files with 81 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue