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

Support passing options to https #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rgould
Copy link

@rgould rgould commented Mar 20, 2013

After upgrading to node 0.10, the https module defaults to checking SSL certs and throwing an error if it encounters a self-signed cert. Our CAS is hosted on a server with such a cert, so we need a way to disable this checking. I figured it would be best to just permit the using modules to insert other options as well.

(This request includes other new commits from master, but you can just cherry-pick 330c84c)

rgould added 4 commits March 13, 2013 11:18
`url.parse("http://foo.com:444/bar").hostname` returns `"foo.com:444"`,
which causes `validate` to make an invalid call to `https`.
This permits us to set values like 'rejectUnauthorized'
Copy link

@kassanmoor kassanmoor left a comment

Choose a reason for hiding this comment

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

Looks good

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.

2 participants