httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_protocol.c
Date Tue, 14 Nov 2000 06:41:37 GMT
rbb         00/11/13 22:41:37

  Modified:    src      CHANGES
               src/main http_protocol.c
  Log:
  Remove the change from earlier tonight to not send a content-length of
  0.
  Submitted by:	Roy Fielding
  
  Revision  Changes    Path
  1.329     +0 -6      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.328
  retrieving revision 1.329
  diff -u -r1.328 -r1.329
  --- CHANGES	2000/11/14 06:11:21	1.328
  +++ CHANGES	2000/11/14 06:41:37	1.329
  @@ -14,12 +14,6 @@
        everything will just work.
        [Ryan Bloom]
   
  -  *) If the Content-Length is zero, we shouldn't output that header
  -     field.  The only time that this field should ever be zero, is if the
  -     request has no body.  But, if it is a HEAD request then we should
  -     be outputing the length of the actual body.
  -     [Ryan Bloom]
  -
     *) Add the referer to the error log if one is available.
        [Markus Gyger <mgyger@itr.ch>]
   
  
  
  
  1.245     +0 -4      apache-2.0/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
  retrieving revision 1.244
  retrieving revision 1.245
  diff -u -r1.244 -r1.245
  --- http_protocol.c	2000/11/14 06:07:40	1.244
  +++ http_protocol.c	2000/11/14 06:41:37	1.245
  @@ -2503,10 +2503,6 @@
           apr_table_addn(r->headers_out, "Expires", date);
       }
   
  -    if (!strcmp(apr_table_get(r->headers_out, "Content-Length"), "0")) {
  -        apr_table_unset(r->headers_out, "Content-Length");
  -    }
  -
       apr_table_do((int (*) (void *, const char *, const char *)) compute_header_len,
                    (void *) &len, r->headers_out, NULL);
       
  
  
  

Mime
View raw message