httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@apache.org
Subject cvs commit: apache-1.3/src/modules/proxy proxy_util.c
Date Fri, 16 Mar 2001 07:01:24 GMT
chuck       01/03/15 23:01:24

  Modified:    src      CHANGES
               src/modules/proxy proxy_util.c
  Log:
  Allow empty headers in mod_proxy. See below:
  Empty headers are allowed by RFC2068 section 4.2.  The presence or
  absence of an empty header can be significant.  The current mod_proxy
  of httpd 1.3.x removes empty headers. Change mod_proxy to preserve
  empty headers.
  Submitted by:	Christian von Roques <roques@mti.ag>
  Reviewed by:	Graham Leggett, Chuck Murcko
  
  Revision  Changes    Path
  1.1667    +5 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1666
  retrieving revision 1.1667
  diff -u -r1.1666 -r1.1667
  --- CHANGES	2001/03/13 20:05:00	1.1666
  +++ CHANGES	2001/03/16 07:01:21	1.1667
  @@ -1,5 +1,10 @@
   Changes with Apache 1.3.20
   
  +  *) Empty headers are allowed by RFC2068 section 4.2.  The presence or
  +     absence of an empty header can be significant.  The current mod_proxy
  +     of httpd 1.3.x removes empty headers. Change mod_proxy to preserve
  +     empty headers. [Christian von Roques <roques@mti.ag>]
  +
     *) Enhance rotatelogs so that a UTC offset can be specified, and
        the logfile name can be formatted using strftime(3).  [Ken Coar]
   
  
  
  
  1.97      +3 -1      apache-1.3/src/modules/proxy/proxy_util.c
  
  Index: proxy_util.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_util.c,v
  retrieving revision 1.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- proxy_util.c	2001/02/07 13:09:59	1.96
  +++ proxy_util.c	2001/03/16 07:01:23	1.97
  @@ -1267,8 +1267,10 @@
   {
       struct tbl_do_args *parm = (struct tbl_do_args *)p;
   
  -    if (key == NULL || value == NULL || value[0] == '\0')
  +    if (key == NULL)
   	return 1;
  +    if (value == NULL)
  +	value = "";
       if (!parm->req->assbackwards)
   	ap_rvputs(parm->req, key, ": ", value, CRLF, NULL);
       if (parm->cache != NULL && parm->cache->fp != NULL &&
  
  
  

Mime
View raw message