https://bz.apache.org/bugzilla/show_bug.cgi?id=69831

            Bug ID: 69831
           Summary: Range header: multiple byte ranges separator
           Product: Apache httpd-2
           Version: 2.4.65
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: cubimo...@gmail.com
  Target Milestone: ---

When trying to get partial results using the range header, each byte range has
to be separated by "," without a space after the comma. So this example works:
```bash
curl --verbose -H "Range: bytes=1-2,3-4" http://localhost
```
while this example returns the whole file (ignoring the range header entirely):
```bash
curl --verbose -H "Range: bytes=1-2, 3-4" http://localhost
```
this is something that isn't specifically mentioned in
[RFC7233](https://datatracker.ietf.org/doc/html/rfc7233). But usually
whitespaces are accepted around headers and nginx works fine in both cases. I
recently got into trouble with electron-builder which specifically uses ", " as
a byte range separator, which didn't work with the apache httpd server.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to