]> granicus.if.org Git - apache/commitdiff
PR:
authorIan Holsman <ianh@apache.org>
Sat, 14 Jul 2001 20:17:07 +0000 (20:17 +0000)
committerIan Holsman <ianh@apache.org>
Sat, 14 Jul 2001 20:17:07 +0000 (20:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89550 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index d1992bcdd2954ad868f2c82dc86b811cf0d73aff..6328b9ae9afbb4e1e8673616a2223a91bd44f731 100644 (file)
@@ -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);
     }