http-server icon indicating copy to clipboard operation
http-server copied to clipboard

only partially follows range spec

Open dice14u opened this issue 4 years ago • 2 comments

Environment Versions

  1. OS Type - win10
  2. 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

dice14u avatar Dec 03 '21 06:12 dice14u

This issue has been inactive for 180 days

github-actions[bot] avatar Jun 01 '22 12:06 github-actions[bot]