-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stop ignoring NODE_TLS_REJECT_UNAUTHORIZED when strictSSL is not…
… defined (#316) Currently NODE_TLS_REJECT_UNAUTHORIZED is simply ignored as options.rejectUnauthorized is always set to false when strictSSL is not defined. Most notably this causes issues for users behind corporate proxies using npm and pnpm when installing a package that uses node-gyp. Example: nodejs/node-gyp#2663 This change only takes into account NODE_TLS_REJECT_UNAUTHORIZED when strictSSL is not passed to fetch. unit tests were added to ensure strictSSL is still the primary driver. Co-authored-by: Bruno Oliveira <[email protected]>
- Loading branch information
1 parent
9cacb5b
commit 3e0fe87
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters