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: allow stream protocols to return headers with multiple values #14887
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
@MarshallOfSound updated! did you want me to dedupe the method as well? |
Bump @MarshallOfSound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to see first time submitters come up with solid code and tests. Thanks for the PR!
@ckerr back to you! |
@ibash you have a consistently failing test here, once CI is green we can take another look at this |
@MarshallOfSound fixed! (not sure how I missed that before, sorry about that!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These CI failures seem unrelated to the PR itself, e.g. cannot open display: :99.0
.
I'd prefer to see CI green and have raised an issue in the Slack channel, but am OK with this landing regardless
@ckerr I'm rerunning the linux CI from the beginning, something probably broke in the middle and is influencing the partial reruns. 🔗 https://circleci.com/workflow-run/e97ae132-c6fc-477f-a971-79d64643f753 |
@ibash can you rebase this PR with the latest from master? The CI tests are failing due to an issue that was resolved in master. |
This allows stream protocols to return headers with multiple values as an array of values. Fixes #14778
1. Deduplicate the code by using a lambda 2. Remove duplicate calls to headers->Get(key)
Headers with multiple values are now being converted correctly, this test asserted the wrong behavior.
Done!
Islam Sharabash
217-377-9657
Sent via Superhuman ( https://sprh.mn/?vip=islam.sharabash@gmail.com )
…On Tue, Oct 23, 2018 at 7:16 AM, John Kleinschmidt < ***@***.*** > wrote:
@ ibash ( https://github.com/ibash ) can you rebase this PR with the latest
from master? The CI tests are failing due to an issue that was resolved in
master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
#14887 (comment) ) ,
or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAMfFpXki_PRQo687I2HmlWOaM5irMwyks5unyS2gaJpZM4XBMnF
).
|
@MarshallOfSound OK to merge? |
Release Notes Persisted
|
Congrats on merging your first pull request! 🎉🎉🎉 |
@MarshallOfSound any opposition to backporting this to 3 and 4? |
…14887) * fix: allow stream protocols to return headers with multiple values This allows stream protocols to return headers with multiple values as an array of values. Fixes #14778 * Prefer ConvertFromV8 * Cleanup header conversion 1. Deduplicate the code by using a lambda 2. Remove duplicate calls to headers->Get(key) * Fix broken test Headers with multiple values are now being converted correctly, this test asserted the wrong behavior.
A maintainer has manually backported this PR to "4-1-x", please check out #18094 |
1 similar comment
A maintainer has manually backported this PR to "4-1-x", please check out #18094 |
A maintainer has manually backported this PR to "4-1-x", please check out #18094 |
…14887) (#18094) * fix: allow stream protocols to return headers with multiple values This allows stream protocols to return headers with multiple values as an array of values. Fixes #14778 * Prefer ConvertFromV8 * Cleanup header conversion 1. Deduplicate the code by using a lambda 2. Remove duplicate calls to headers->Get(key) * Fix broken test Headers with multiple values are now being converted correctly, this test asserted the wrong behavior.
Description of Change
This allows stream protocols to return headers with multiple values as
an array of values.
Fixes #14778
cc @sofianguy
Checklist
npm test
passesRelease Notes
Notes: Fixed returning headers with multiple values for stream protocols.