You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/11/22 14:11:36 UTC

DO NOT REPLY [Bug 11601] - Failed request with 'Range' header does not return an error reply

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11601>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11601

Failed request with 'Range' header does not return an error reply

trawick@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From trawick@apache.org  2002-11-22 13:11 -------
This was fixed back in October with a different change.  Apparently the
developer wasn't aware of this PR, so it didn't get closed.

This will be in the next release.

Thanks for your report, and thanks for using Apache!

gregames    2002/10/25 11:25:12

  Modified:    modules/http http_protocol.c
  Log:
  don't apply byte ranges to redirects, error documents, etc.

  Revision  Changes    Path
  1.463     +1 -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.462
  retrieving revision 1.463
  diff -u -r1.462 -r1.463
  --- http_protocol.c   11 Oct 2002 15:29:20 -0000      1.462
  +++ http_protocol.c   25 Oct 2002 18:25:11 -0000      1.463
  @@ -3062,7 +3062,7 @@
           range = apr_table_get(r->headers_in, "Request-Range");
       }

  -    if (!range || strncasecmp(range, "bytes=", 6)) {
  +    if (!range || strncasecmp(range, "bytes=", 6) || r->status != HTTP_OK) {
           return 0;
       }

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org