From: Ian Holsman Date: Sat, 14 Jul 2001 20:17:07 +0000 (+0000) Subject: PR: X-Git-Tag: 2.0.21~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f99ed71713426ef71539a3fccd825e7596a413e8;p=apache PR: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89550 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index d1992bcdd2..6328b9ae9a 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -532,20 +532,20 @@ int ap_proxy_http_handler(request_rec *r, proxy_server_conf *conf, /* Add X-Forwarded-For: so that the upstream has a chance to * determine, where the original request came from. */ - apr_table_mergen(r->headers_in, "X-Forwarded-For", r->connection->remote_ip); + apr_table_setn(r->headers_in, "X-Forwarded-For", r->connection->remote_ip); /* Add X-Forwarded-Host: so that upstream knows what the * original request hostname was. */ if ((buf = apr_table_get(r->headers_in, "Host"))) { - apr_table_mergen(r->headers_in, "X-Forwarded-Host", buf); + apr_table_setn(r->headers_in, "X-Forwarded-Host", buf); } /* Add X-Forwarded-Server: so that upstream knows what the * name of this proxy server is (if there are more than one) * XXX: This duplicates Via: - do we strictly need it? */ - apr_table_mergen(r->headers_in, "X-Forwarded-Server", + apr_table_setn(r->headers_in, "X-Forwarded-Server", r->server->server_hostname); }