[whatwg/fetch] simple range header value parser does not allow for suffix-byte-range-spec (Issue #1450)

Currently the [simple range header value](https://fetch.spec.whatwg.org/#simple-range-header-value) does not allow for the [suffix-byte-range-spec](https://httpwg.org/specs/rfc7233.html#rule.ranges-specifier). The [simple range header value](https://fetch.spec.whatwg.org/#simple-range-header-value) would not return true for the following example in [RFC 7233](https://httpwg.org/specs/rfc7233.html):

> Additional examples, assuming a representation of length 10000:
>
>    The final 500 bytes (byte offsets 9500-9999, inclusive):
>
>      bytes=-500

`rangeStart` would be a string with length 0, and would not pass the following:

> If rangeStart, interpreted as decimal number, is greater than rangeEnd, interpreted as decimal number, then return false.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1450
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1450@github.com>

Received on Sunday, 5 June 2022 16:14:14 UTC