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(http/file_server.ts): Respond to Range requests with correct byte length #3319

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

ayame113
Copy link
Contributor

@ayame113 ayame113 commented Apr 17, 2023

fix #3198

Note: As commented by #3198 (comment), the problem is already fixed for most users using file_server.ts. However, users who wanted to use serveFile() by itself were still getting the wrong response. This PR fixes it.

@ayame113 ayame113 requested a review from kt3k as a code owner April 17, 2023 08:49
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@kt3k kt3k merged commit f5ba1ed into denoland:main Apr 18, 2023
@ayame113 ayame113 deleted the fix-servefile-range branch April 18, 2023 07:40
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.

Erroneous HTTP/2 responses to range requests with std/http's serveFile
2 participants