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(ext/node): ServerResponse header array handling #24149

Merged

Conversation

lucacasonato
Copy link
Member

Previously res.setHeader("foo", ["bar", "baz"]) added a single header with a value of bar,baz. Really this should add two separate headers. This is visible in set-cookie for example.

Fixes #23662

lucacasonato and others added 2 commits June 8, 2024 18:31
Previously res.setHeader("foo", ["bar", "baz"]) added a single header with a value of `bar,baz`. Really this should add two separate headers. This is visible in `set-cookie` for example.
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM

@lucacasonato lucacasonato merged commit 3d41b48 into denoland:main Jun 11, 2024
17 checks passed
nathanwhit pushed a commit that referenced this pull request Jun 13, 2024
Previously res.setHeader("foo", ["bar", "baz"]) added a single header
with a value of `bar,baz`. Really this should add two separate headers.
This is visible in `set-cookie` for example.
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.

Multiple "set-cookie" headers get merged into one
2 participants