We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81f50fb + 579e1cb commit b27a2afCopy full SHA for b27a2af
1 file changed
reverse.go
@@ -215,7 +215,7 @@ func addXForwardedForHeader(req *http.Request) {
215
// X-Forwarded-For information as a comma+space
216
// separated list and fold multiple headers into one.
217
if prior, ok := req.Header["X-Forwarded-For"]; ok {
218
- clientIP = strings.Join(prior, ", ") + clientIP
+ clientIP = strings.Join(prior, ", ") + ", " + clientIP
219
}
220
req.Header.Set("X-Forwarded-For", clientIP)
221
0 commit comments