Bug 18631 - Empty header fix rolled out
Summary: Empty header fix rolled out
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-1.3
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: HEAD
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2003-04-02 22:50 UTC by Joshua Colvin
Modified: 2007-08-02 11:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Colvin 2003-04-02 22:50:12 UTC
This update:
*** proxy_util.c        7 Feb 2001 13:09:59 -0000       1.96
--- proxy_util.c        16 Mar 2001 07:01:23 -0000      1.97
***************
*** 1267,1274 ****
  {
      struct tbl_do_args *parm = (struct tbl_do_args *)p;
  
!     if (key == NULL || value == NULL || value[0] == '\0')
        return 1;
      if (!parm->req->assbackwards)
        ap_rvputs(parm->req, key, ": ", value, CRLF, NULL);
      if (parm->cache != NULL && parm->cache->fp != NULL &&
--- 1267,1276 ----
  {
      struct tbl_do_args *parm = (struct tbl_do_args *)p;
  
!     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 &&
----------------------------
revision 1.97
date: 2001/03/16 07:01:23;  author: chuck;  state: Exp;  lines: +3 -1
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
=============================================================================


was removed by this commit:
----------------------------
revision 1.101
date: 2002/01/18 20:26:58;  author: chuck;  state: Exp;  lines: +585 -437
The rest of the proxy http 1.1 switch
=============================================================================
Comment 1 Jeff Trawick 2003-11-21 18:15:50 UTC
I'm going through the bug db to make sure patches are findable.  Please see 
http://httpd.apache.org/dev/patches.html