httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Sun, 28 Jan 2001 03:38:21 GMT
rbb         01/01/27 19:38:21

  Modified:    modules/http http_protocol.c
  Log:
  Use the new error bucket to report HTTP_RANGE_NOT_SATISFIABLE from
  the byterange filter.  This is much safer than returning the error
  directly.
  
  Revision  Changes    Path
  1.286     +6 -1      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.285
  retrieving revision 1.286
  diff -u -d -b -w -u -r1.285 -r1.286
  --- http_protocol.c	2001/01/27 18:23:49	1.285
  +++ http_protocol.c	2001/01/28 03:38:21	1.286
  @@ -235,7 +235,12 @@
    
           if (num_ranges == -1) {
               ap_remove_output_filter(f);
  -            return HTTP_RANGE_NOT_SATISFIABLE;
  +            bsend = apr_brigade_create(r->pool);
  +            e = ap_bucket_create_error(HTTP_RANGE_NOT_SATISFIABLE, NULL, r->pool);
  +            APR_BRIGADE_INSERT_TAIL(bsend, e);
  +            e = apr_bucket_create_eos();
  +            APR_BRIGADE_INSERT_TAIL(bsend, e);
  +            return ap_pass_brigade(f->next, bsend);
           }
           if (num_ranges == 0) {
               ap_remove_output_filter(f);
  
  
  

Mime
View raw message