You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for the great work. I used your range parser as base for a new PSR Handler & Middleware, that I will publish soon. With my tests, a found an issue in your parser.
Best regards,
Tim
Description
I got this ParseException "Unable to parse range: 210-250" if the header is "bytes=0-199, 210-250"
Steps to reproduce
Call your code with a Range header incl. multiple ranges separated by space: bytes=0-199, 210-250
Expected behavior
I would expect the same behavior as with this header bytes=0-199,210-250 (without space). The space is allowed in this context and should be trimmed/skipped in the parsing process.
I just realized that I've not updated the GitHub Actions workflows to test this library on PHP 8.1 or 8.2 yet, so I'll handle that while taking a look at this issue.
Hey Ramsey,
thanks for the great work. I used your range parser as base for a new PSR Handler & Middleware, that I will publish soon. With my tests, a found an issue in your parser.
Best regards,
Tim
Description
I got this ParseException "Unable to parse range: 210-250" if the header is "bytes=0-199, 210-250"
Steps to reproduce
Call your code with a
Range
header incl. multiple ranges separated by space:bytes=0-199, 210-250
Expected behavior
I would expect the same behavior as with this header
bytes=0-199,210-250
(without space). The space is allowed in this context and should be trimmed/skipped in the parsing process.Same docs:
Environment details
The text was updated successfully, but these errors were encountered: