make change

This commit is contained in:
miloschwartz
2026-08-19 11:47:57 -04:00
parent cb987b6d85
commit 19e4a3b043

View File

@@ -619,7 +619,7 @@ func (p *Badger) setIPHeaders(req *http.Request, realIP string) {
// unconditionally overwrites X-Forwarded-For/X-Real-Ip instead of
// 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
// don't.
// don't
if p.realIPHeader != "" {
req.Header.Set(p.realIPHeader, realIP)
}