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

websocket needs to respect options.secure too #729

Merged
merged 1 commit into from
Nov 4, 2014
Merged

websocket needs to respect options.secure too #729

merged 1 commit into from
Nov 4, 2014

Conversation

ming-codes
Copy link
Contributor

A simple change to make secured web socket connections respect options.secure. Before, this was throwing [Error: Hostname/IP doesn't match certificate's altnames]

@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

@Lightblade LGTM. Mind if you implement it like the one above? just makes it a bit shorter and cleaner :)

e.g ~['https:', 'wss:'].indexOf(options[forward || 'target'].protocol will be true if we are dealing with SSL

@ming-codes
Copy link
Contributor Author

Sure. Amended the commit.

@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

Thanks!

jcrugzz added a commit that referenced this pull request Nov 4, 2014
websocket needs to respect `options.secure` too
@jcrugzz jcrugzz merged commit 57329b6 into http-party:master Nov 4, 2014
@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

@Lightblade published as 1.6.1

@ming-codes
Copy link
Contributor Author

Great! Thanks!

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