httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@hyperreal.org
Subject cvs commit: apache-1.3/src/main http_protocol.c http_core.c
Date Thu, 07 May 1998 01:21:24 GMT
brian       98/05/06 18:21:23

  Modified:    src      CHANGES
               src/main http_protocol.c http_core.c
  Log:
  PR: 1464
  
  Emit the Accept-Ranges header for every response from the default handler,
  instead of just for those that don't emit a "Range" request.
  
  Revision  Changes    Path
  1.829     +3 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.828
  retrieving revision 1.829
  diff -u -r1.828 -r1.829
  --- CHANGES	1998/05/06 21:16:03	1.828
  +++ CHANGES	1998/05/07 01:21:15	1.829
  @@ -1,5 +1,8 @@
   Changes with Apache 1.3b7
     
  +  *) Emit the "Accept-Range" header for the default handler.
  +     [Brian Behlendorf] PR#1464
  +
     *) Add a note to httpd.conf-dist that apache will on some systems fail
        to start when the Group # is set to a negative or large positive value.
        [Martin Kraemer]
  
  
  
  1.213     +0 -1      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.212
  retrieving revision 1.213
  diff -u -r1.212 -r1.213
  --- http_protocol.c	1998/04/27 06:59:35	1.212
  +++ http_protocol.c	1998/05/07 01:21:22	1.213
  @@ -141,7 +141,6 @@
           range = ap_table_get(r->headers_in, "Request-Range");
   
       if (!range || strncasecmp(range, "bytes=", 6)) {
  -        ap_table_setn(r->headers_out, "Accept-Ranges", "bytes");
           return 0;
       }
   
  
  
  
  1.193     +1 -0      apache-1.3/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
  retrieving revision 1.192
  retrieving revision 1.193
  diff -u -r1.192 -r1.193
  --- http_core.c	1998/05/05 04:48:05	1.192
  +++ http_core.c	1998/05/07 01:21:22	1.193
  @@ -2120,6 +2120,7 @@
       ap_update_mtime (r, r->finfo.st_mtime);
       ap_set_last_modified(r);
       ap_set_etag(r);
  +    ap_table_setn(r->headers_out, "Accept-Ranges", "bytes");
       if (((errstatus = ap_meets_conditions(r)) != OK)
   	|| (errstatus = ap_set_content_length (r, r->finfo.st_size))) {
   	    return errstatus;
  
  
  

Mime
View raw message