httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 proxy_http.c
Date Sat, 14 Jul 2001 20:17:08 GMT
ianh        01/07/14 13:17:08

  Modified:    module-2.0 proxy_http.c
  Log:
  
  
  Revision  Changes    Path
  1.77      +3 -3      httpd-proxy/module-2.0/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_http.c,v
  retrieving revision 1.76
  retrieving revision 1.77
  diff -u -r1.76 -r1.77
  --- proxy_http.c	2001/07/02 03:37:37	1.76
  +++ proxy_http.c	2001/07/14 20:17:07	1.77
  @@ -532,20 +532,20 @@
           /* 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);
       }
   
  
  
  

Mime
View raw message