-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Inaccurate https.request options docs #9324
Comments
I'm not sure if the documentation was correct even at the time it was written. I remember quietly fixing lib/https.js to behave like the documentation says it does in 35607f3 in 2012. Seems Isaac changed it again in 49519f1 from 2013 but without updating the documentation. The global agent respects connection-level properties. It simply creates a new connection when it doesn't find an existing connection in the pool with those exact same properties. It seems |
@papandreou can you PR corrections to the docs? That would be very helpful if you have the time. |
@sam-github, sure thing: #9453 @bnoordhuis, thanks for weighing in. I tried to fix the |
As suggested by @bnoordhuis in nodejs#9324
Everything has been addressed by PRs now, so I'll close this issue. |
Refs: #9324 PR-URL: #9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs: nodejs#9324 PR-URL: nodejs#9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs: nodejs#9324 PR-URL: nodejs#9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs: nodejs#9324 PR-URL: nodejs#9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs: nodejs#9324 PR-URL: nodejs#9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs: #9324 PR-URL: #9452 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
I needed to explore specifying the SNI hostname independently of the hostname and the
Host
header, but the docs list theservername
among these bullets (my emphasis):That doesn't seem to be correct, though. If I do an HTTPS request without providing an
Agent
instance (thus utilizing the global agent), it does use theservername
as the SNI hostname:The
rejectUnauthorized
option also works fine without an agent.It seems like the docs should be fixed to match reality? I'd whip up a PR, but I'm not sure exactly which of the remaining options also work without an agent, and I'm not familiar enough with TLS etc. to find out.
Looks like the inaccuracy was introduced in 8ba5631, while
rejectUnauthorized
was added to the list way back in f8c335d (0.6.6).The text was updated successfully, but these errors were encountered: