deno
185b6b03 - fix(ext/node): honor NODE_TLS_REJECT_UNAUTHORIZED=0 in tls/https clients

Commit
190 days ago
fix(ext/node): honor NODE_TLS_REJECT_UNAUTHORIZED=0 in tls/https clients When the env var is set to "0", `tls.connect()` (and therefore `https.request()` / `https.get()`) now defaults `rejectUnauthorized` to false, matching Node's behavior. An explicit `rejectUnauthorized: true` in user options still wins. A one-shot warning is emitted the first time the value is observed. Enables the previously-ignored compat tests `parallel/test-https-client-get-url` and `parallel/test-https-strict`. Closes denoland/orchid#132 Co-Authored-By: Divy Srivastava <me@littledivy.com>
Author
Parents
Loading