httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c
Date Thu, 29 Nov 2001 21:09:31 GMT
ianh        01/11/29 13:09:31

  Modified:    modules/proxy mod_proxy.c
  Log:
  r->headers_in is shared by original requests and components (make no sense
  copy them for components), but each component has its own r->pool.
  So once the first component set "Max-Forwards", it is in headers_in
  but the value could get lost with the first component's r->pool.
  Hence I sometimes see "Max-Forwards" has value like letter "l".
  Change it to use apr_table_set() fixed the problem.
  
  Submitted by:	Jin Hong <jinh@cnet.com>
  
  Revision  Changes    Path
  1.64      +1 -1      httpd-2.0/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- mod_proxy.c	2001/11/17 22:01:32	1.63
  +++ mod_proxy.c	2001/11/29 21:09:31	1.64
  @@ -382,7 +382,7 @@
   	/* set configured max-forwards */
   	maxfwd = conf->maxfwd;
       }
  -    apr_table_setn(r->headers_in, "Max-Forwards", 
  +    apr_table_set(r->headers_in, "Max-Forwards", 
   		   apr_psprintf(r->pool, "%ld", (maxfwd > 0) ? maxfwd : 0));
   
       if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR)))
  
  
  

Mime
View raw message