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 2004/03/16 17:34:51 UTC

DO NOT REPLY [Bug 27715] - Apache dosn't understand "Range:" header if client sent "bytes = 0-100" instead "bytes=0-100"

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27715

Apache dosn't understand "Range:" header if client sent "bytes = 0-100" instead "bytes=0-100"





------- Additional Comments From ulanov@rt.mipt.ru  2004-03-16 16:34 -------
That is a possible patch:
--- apache_1.3.29/src/main/http_protocol.c.old  2004-03-16 18:59:27.000000000 +0300
+++ apache_1.3.29/src/main/http_protocol.c      2004-03-16 19:01:08.000000000 +0300
@@ -303,10 +303,12 @@
     if (!(range = ap_table_get(r->headers_in, "Range")))
         range = ap_table_get(r->headers_in, "Request-Range");

-    if (!range || strncasecmp(range, "bytes=", 6)) {
+    if (range && strncasecmp(range, "bytes=", 6)==0)
+        range += 6;
+    if (range && strncasecmp(range, "bytes = ", 8)==0)
+        range += 8;
+    else
         return 0;
-    }
-    range += 6;

     /* Check the If-Range header for Etag or Date.
      * Note that this check will return false (as required) if either

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