Skip to content

http: fix connection upgrade checks - #8238

Merged
mscdex merged 1 commit into
nodejs:masterfrom
mscdex:http-add-headers-guard
Aug 26, 2016
Merged

http: fix connection upgrade checks#8238
mscdex merged 1 commit into
nodejs:masterfrom
mscdex:http-add-headers-guard

Conversation

@mscdex

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)
  • http
Description of change

This commit fixes connection upgrade checks, specifically when headers are passed as an array instead of a plain object to http.request().

Fixes: #8235

@mscdexmscdex added the http Issues or PRs related to the http subsystem. label Aug 23, 2016
@mscdex

Copy link
Copy Markdown
ContributorAuthor

/cc @nodejs/http

@mscdex

Copy link
Copy Markdown
ContributorAuthor

@mscdex

Copy link
Copy Markdown
ContributorAuthor

CI is green except for an unrelated failure on AIX.

@jasnell

Copy link
Copy Markdown
Member

LGTM

@mscdex
mscdexforce-pushed the http-add-headers-guard branch from fd38f3a to f216ecbCompareAugust 26, 2016 14:16
This commit fixes connection upgrade checks, specifically when headers
are passed as an array instead of a plain object to http.request()
Fixes: nodejs#8235
PR-URL: nodejs#8238
Reviewed-By: James M Snell <jasnell@gmail.com>
@mscdex
mscdexforce-pushed the http-add-headers-guard branch from f216ecb to 1050594CompareAugust 26, 2016 14:17
@mscdex
mscdex merged commit 1050594 into nodejs:masterAug 26, 2016
@mscdex
mscdex deleted the http-add-headers-guard branch August 26, 2016 14:19
@Fishrock123Fishrock123 mentioned this pull request Sep 6, 2016
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request Sep 8, 2016
This commit fixes connection upgrade checks, specifically when headers
are passed as an array instead of a plain object to http.request()
Fixes: nodejs#8235
PR-URL: nodejs#8238
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Sep 9, 2016
This commit fixes connection upgrade checks, specifically when headers
are passed as an array instead of a plain object to http.request()
Fixes: #8235
PR-URL: #8238
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins

Copy link
Copy Markdown
Contributor

@mscdex this does not land cleanly on v4.x, but we definitely should backport as I have confirmed it is broken on v4.x

Would you be able to backport?

@MylesBorinsMylesBorins added this to the v4.6.2 milestone Oct 24, 2016
@MylesBorinsMylesBorins modified the milestones: v4.7.0, v4.6.2Oct 26, 2016
@MylesBorins

Copy link
Copy Markdown
Contributor

ping @mscdex

mscdex added a commit to mscdex/io.js that referenced this pull request Nov 18, 2016
This commit fixes connection upgrade checks, specifically when headers
are passed as an array instead of a plain object to http.request()
Fixes: nodejs#8235
PR-URL: nodejs#8238
Reviewed-By: James M Snell <jasnell@gmail.com>
@mscdex

Copy link
Copy Markdown
ContributorAuthor

@thealphanerd#9681

MylesBorins pushed a commit that referenced this pull request Nov 22, 2016
This commit fixes connection upgrade checks, specifically when headers
are passed as an array instead of a plain object to http.request()
Fixes: #8235
PR-URL: #8238
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorinsMylesBorins removed this from the 4.7.0 milestone Nov 22, 2016
@MylesBorinsMylesBorins mentioned this pull request Nov 22, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error http request at headers is array

3 participants

@mscdex@jasnell@MylesBorins