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 default port detection with node 0.12.x #799

Merged
merged 3 commits into from
Apr 2, 2015

Conversation

Volune
Copy link
Contributor

@Volune Volune commented Apr 2, 2015

With node 0.12.2, common.getPort was always returning a default port 80 even for HTTPS connections, because req.connection.pair is undefined on this version of node.

Here is a fix, along with some fixes for the HTTPS tests. It has been tested with node 0.10.38 and node 0.12.2 on windows.

@jcrugzz
Copy link
Contributor

jcrugzz commented Apr 2, 2015

@Volune this LGTM. Thanks for the thorough fix 👍

jcrugzz added a commit that referenced this pull request Apr 2, 2015
Fix default port detection with node 0.12.x
@jcrugzz jcrugzz merged commit 6201ac7 into http-party:master Apr 2, 2015
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.

None yet

2 participants