Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

https: fix default port#5991

Closed
koichik wants to merge 1 commit intonodejs:masterfrom
koichik:fix-https-default-port
Closed

https: fix default port#5991
koichik wants to merge 1 commit intonodejs:masterfrom
koichik:fix-https-default-port

Conversation

@koichik
Copy link
Copy Markdown

@koichik koichik commented Aug 4, 2013

https.get('https://github.com/') should use port 443, not 80.

Comment thread lib/_http_client.js
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So lib/_http_agent.js doesn't export globalAgent? That looks like a buglet to me that could (and arguably should) be fixed by moving the declaration of globalAgent from lib/http.js to lib/_http_agent.js (and having lib/http.js re-export it). That would also remove the need to call require('http') below. Agree/disagree?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I agree, _http_client.js shouldn't depend on http.js. However, actually, 40e9265 moved globalAgent from _http_agent.js to http.js. hmm...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably an oversight, seeing that it broke lib/_http_client.js. I'm okay with undoing that, i.e. moving it back to lib/_http_agent.js again.

/cc @isaacs

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes, that looks like an oversight to me. Will fix momentarily, and then rebase @koichik's patch onto it.

@isaacs
Copy link
Copy Markdown

isaacs commented Aug 5, 2013

Oversight fixed in 32fdae2.

Split the test into a non-root-requiring simple test, and a internet requiring internet test. Landed on 72ad2c9.

Thanks @koichik!

@isaacs isaacs closed this Aug 5, 2013
@isaacs
Copy link
Copy Markdown

isaacs commented Aug 5, 2013

Ack whoops, didn't realize it was in test/disabled! Moved to test/simple/ in f4b1e00.

h4ck3rm1k3 pushed a commit to h4ck3rm1k3/node that referenced this pull request Nov 1, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants