We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I stumbled across this issue when I tried to understand why NODE_TLS_REJECT_UNAUTHORIZED didn't work with this library.
NODE_TLS_REJECT_UNAUTHORIZED
The following code will work as expected, and reject a self-signed TLS certificate.
const es = new EventSource('https://self-signed.com')
However, the following code will connect to the self-signed certificate:
const es = new EventSource('https://self-signed.com', {})
This appears to be an unexpected, and undesirable behaviour. Let me know if I've misunderstood. I'll open a PR in the meantime :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I stumbled across this issue when I tried to understand why
NODE_TLS_REJECT_UNAUTHORIZED
didn't work with this library.The following code will work as expected, and reject a self-signed TLS certificate.
However, the following code will connect to the self-signed certificate:
This appears to be an unexpected, and undesirable behaviour. Let me know if I've misunderstood. I'll open a PR in the meantime :)
The text was updated successfully, but these errors were encountered: