diff -ru ./forward.c.ori ./forward.c --- ./forward.c.ori 2015-08-24 22:06:16.000000000 +0200 +++ ./forward.c 2015-08-24 21:52:07.000000000 +0200 @@ -505,9 +505,9 @@ */ if (data[0]->http_version >= 11) data[0]->headers = hlist_mod(data[0]->headers, "Proxy-Connection", "keep-alive", 1); - + data[0]->headers = hlist_mod(data[0]->headers, "X-Forwarded-For", inet_ntoa(caddr.sin_addr), 1); /* - * Also remove runaway P-A from the client (e.g. Basic from N-t-B), which might + * Also remove runaway P-A from the client (e.g. Basic from N-t-B), which might * cause some ISAs to deny us, even if the connection is already auth'd. */ while (hlist_get(data[loop]->headers, "Proxy-Authorization")) {