FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow multiple headers with the same name to be retrieved from a HTTP response by enchev · Pull Request #1707 · NativeScript/NativeScript · GitHub

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

Merged
enchev merged 1 commit into
masterfrom
http-headers
Mar 8, 2016
Merged

enchev merged 1 commit into
masterfrom
http-headers

Conversation

enchev commented Mar 7, 2016

Copy link
Copy Markdown
Contributor

Fixed #1695

ns-bot added cla: yes and removed cla: no labels Mar 7, 2016
Comment thread apps/tests/http-tests.ts Outdated
(<any>http).addHeader(headers, "key", "value2");

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

hdeshev commented Mar 7, 2016

Copy link
Copy Markdown
Contributor

👍

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 merged commit e428404 into master Mar 8, 2016
enchev deleted the http-headers branch March 8, 2016 11:54

lock Bot commented Aug 28, 2019

Copy link
Copy Markdown

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 Bot locked and limited conversation to collaborators Aug 28, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL