npm / minipass-fetch

An implementation of window.fetch in Node.js using Minipass streams
Other
54 stars 11 forks source link

[BUG] minipass-fetch is not aware of NODE_TLS_REJECT_UNAUTHORIZED #11

Closed svennergr closed 3 years ago

svennergr commented 3 years ago

The rejectUnauthorized property is fixed to true if it is not set. This will not respect the setting of the NODE_TLS_REJECT_UNAUTHORIZED environment variable.

https://github.com/npm/minipass-fetch/blob/bbb9132459bb1157244542a4df8b50f9cdca5330/lib/request.js#L84

isaacs commented 3 years ago

Fixed by #12