Skip to content

Allow multiple headers with the same name to be retrieved from a HTTP response #1707

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 1 commit into from
Mar 8, 2016

Conversation

enchev
Copy link
Contributor

@enchev enchev commented Mar 7, 2016

Fixed #1695

@ns-bot ns-bot added cla: yes and removed cla: no labels Mar 7, 2016
(<any>http).addHeader(headers, "key", "value2");

try {
TKUnit.assert(Array.isArray(headers["key"]), "Headers with same key not added properly!");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not check for both values here instead of just verifying the result as being an array?

@hdeshev
Copy link
Contributor

hdeshev commented Mar 7, 2016

👍

enchev pushed a commit that referenced this pull request Mar 8, 2016
Allow multiple headers with the same name to be retrieved from a HTTP response
@enchev enchev merged commit e428404 into master Mar 8, 2016
@enchev enchev deleted the http-headers branch March 8, 2016 11:54
@lock
Copy link

lock bot commented Aug 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http module does not support multiple headers with same name
3 participants