ipfs / helia-verified-fetch

A fetch-like API for obtaining verified & trustless IPFS CIDs on the web
https://npmjs.com/package/@helia/verified-fetch
Other
19 stars 5 forks source link

fix: byte range request end should never equal file size #24

Closed SgtPooki closed 8 months ago

SgtPooki commented 8 months ago

Title

Fix byte range parsing

Description

Byte range requests (<range-start>-<range-end>/<size>) should never be in a state where <range-end> is greater than or equal to <size>. This PR fixes the byte range parsing in the request and response headers to ensure that the range is always valid.

Notes & open questions

More info in https://github.com/ipfs-shipyard/helia-service-worker-gateway/pull/122#issuecomment-2005215744

Change checklist

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 6 months ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: