Skip to content

fix(node/http): normalize header names in ServerResponse #26339

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

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

nathanwhit
Copy link
Member

Fixes #26115.

We weren't normalizing the headers to lower case, so code that attempted to delete the Content-Length header (but used a different case) wasn't actually removing the header.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, nice catch

@nathanwhit nathanwhit enabled auto-merge (squash) October 17, 2024 00:35
@nathanwhit nathanwhit merged commit 458d627 into main Oct 17, 2024
17 checks passed
@nathanwhit nathanwhit deleted the normalize-header-names branch October 17, 2024 00:42
bartlomieju pushed a commit that referenced this pull request Oct 17, 2024
Fixes #26115.

We weren't normalizing the headers to lower case, so code that attempted
to delete the `Content-Length` header (but used a different case) wasn't
actually removing the header.
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.

Svelte preview server crashes when running in Deno
2 participants