Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct amount of bytes for HTTP range responses #64

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jakmeier
Copy link
Contributor

@jakmeier jakmeier commented Sep 1, 2024

The HTTP "Range" and "Content-Range" headers use inclusive start and end indices.
See RFC 7233.

Bun file slices, however, use an exclusive end index. The code to construct the answer did not reflect that.

The HTTP "Range" and "Content-Range" headers use inclusive
start and end indices.
See [RFC 7233](https://www.rfc-editor.org/rfc/rfc7233).

Bun file slices, however, use an exclusive end index.
The code to construct the answer did not reflect that.
@jakmeier
Copy link
Contributor Author

jakmeier commented Sep 1, 2024

Fixes #65

jeppech added a commit to jeppech/svelte-adapter-bun that referenced this pull request Sep 30, 2024
@notramo
Copy link

notramo commented Oct 2, 2024

@gornostay25, could you merge it? It's simple to review (literally 1 line).

@gornostay25 gornostay25 merged commit c0bab9b into gornostay25:master Oct 2, 2024
@jakmeier jakmeier deleted the fix-http-range branch October 22, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants