mirror of
https://github.com/fosrl/badger.git
synced 2026-10-27 14:09:09 +01:00
make change
This commit is contained in:
@@ -619,7 +619,7 @@ func (p *Badger) setIPHeaders(req *http.Request, realIP string) {
|
|||||||
// unconditionally overwrites X-Forwarded-For/X-Real-Ip instead of
|
// unconditionally overwrites X-Forwarded-For/X-Real-Ip instead of
|
||||||
// appending to them - a proxy like that has no reason to touch a header
|
// appending to them - a proxy like that has no reason to touch a header
|
||||||
// name it doesn't recognize, so this survives where the standard ones
|
// name it doesn't recognize, so this survives where the standard ones
|
||||||
// don't.
|
// don't
|
||||||
if p.realIPHeader != "" {
|
if p.realIPHeader != "" {
|
||||||
req.Header.Set(p.realIPHeader, realIP)
|
req.Header.Set(p.realIPHeader, realIP)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user