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 Thu, 09 Nov 2000 03:00:02 GMT
rbb         00/11/08 19:00:02

  Modified:    src/main http_protocol.c
  Log:
  The content-length filter needs to compute the length even if the
  content-length has already been set.  If we don't, then we won't know if
  the content-length has changed because some other filter changed the
  length of the actual data.  We also ALWAYS want to calculate the content
  length if we get the whole brigade in the first call to this function.
  
  Revision  Changes    Path
  1.237     +3 -3      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.236
  retrieving revision 1.237
  diff -u -r1.236 -r1.237
  --- http_protocol.c	2000/11/09 00:36:50	1.236
  +++ http_protocol.c	2000/11/09 03:00:00	1.237
  @@ -2237,16 +2237,16 @@
            * . body already chunked
            * Much of this should correspond to checks in ap_set_keepalive().
            */
  -        if (r->assbackwards 
  +        if ((r->assbackwards 
               || r->status == HTTP_NOT_MODIFIED 
               || r->status == HTTP_NO_CONTENT
               || r->header_only
  -            || apr_table_get(r->headers_out, "Content-Length")
               || r->proto_num == HTTP_VERSION(1,1)
               || ap_find_last_token(f->r->pool,
                                     apr_table_get(r->headers_out,
                                                   "Transfer-Encoding"),
  -                                                "chunked")) {
  +                                                "chunked"))
  +            && (!AP_BUCKET_IS_EOS(AP_BRIGADE_LAST(b)))) {
               ctx->hold_data = 0;
           }
           else {
  
  
  

Mime
View raw message