http-server
http-server copied to clipboard
only partially follows range spec
Environment Versions
- OS Type - win10
- http-server version: v14.0.0
Steps to reproduce
create a comma separated range request ex: range: bytes=10-15,17-30
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
Expected result
returns both ranges in the response
Actual result
only returns the first range,
https://github.com/http-party/http-server/blob/cf17c2fe97342f6a268bfb8fc79a2b82464c4d25/lib/core/index.js#L272
does not first split on ,
so request is truncated to equivalent of
range: bytes=10-15
This issue has been inactive for 180 days