client-request
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "client-request", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A zero-dependency stripped-down http client request module based on the http://npm.im/request API", | ||
@@ -5,0 +5,0 @@ "main": "request.js", |
@@ -10,2 +10,14 @@ "use strict" | ||
var CORE_HTTPS_OPTS = [ | ||
'pfx', | ||
'key', | ||
'cert', | ||
'ca', | ||
'ciphers', | ||
'rejectUnauthorized', | ||
'secureProtocol', | ||
'passphrase', | ||
'servername' | ||
] | ||
var clientId = require("crypto").randomBytes(3).toString("hex") | ||
@@ -179,3 +191,3 @@ | ||
if (protocol === 'https:') { | ||
["pfx", "key", "cert", "ca", "ciphers", "rejectUnauthorized", "secureProtocol"].forEach(function ea(key) { | ||
CORE_HTTPS_OPTS.forEach(function ea(key) { | ||
if (options[key]) { | ||
@@ -182,0 +194,0 @@ opts[key] = options[key] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13504
234