Axios ignores NODE_TLS_REJECT_UNAUTHORIZED when a custom httpsAgent is provided
When using Axios with a custom httpsAgent , the library does not consult the NODE_TLS_REJECT_UNAUTHORIZED environment variable, causing certificate validation to behave as if rejectUnauthorized: true even when the variable is set to 0 . This behavior can lead to unexpected UNABLE_TO_VERIFY_LEAF_SIGNATURE errors in environments that rely on the variable to re