Closed dmkret closed 1 year ago
For ranges of bytes, if the first byte of the specified range was greater than the length of the sequence, then this error message will be returned.
This is giving problems on Microsoft Azure Platform where a lot of range: bytes=0-8388607
requests are made by Azure Front Door.
@lukeed what do you think about the #147 ? Is not a low-risk PR - fixing a rather big problem? (Linkedin sends a 'range' => 'bytes=0-3145727',
when previewing links.)
RFC 7233, Section 4.4:
Current implementation limits
end
of range and returns416
error: https://github.com/lukeed/sirv/blob/886cc962a345780cd78f8910cdcf218db2a8d955/packages/sirv/index.js#L72-L80end
can be limited withMath.min
, for example, and excluded from condition