Comparing version 2.12.5 to 2.12.6
{ | ||
"name": "tiged", | ||
"version": "2.12.5", | ||
"version": "2.12.6", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8.0.0" |
@@ -61,11 +61,13 @@ const fs = require('fs-extra'); | ||
return new Promise((fulfil, reject) => { | ||
let options = url; | ||
const parsedUrl = URL.parse(url); | ||
const options = { | ||
hostname: parsedUrl.hostname, | ||
port: parsedUrl.port, | ||
path: parsedUrl.path, | ||
headers: { | ||
Connection: 'close' | ||
} | ||
}; | ||
if (proxy) { | ||
const parsedUrl = URL.parse(url); | ||
options = { | ||
hostname: parsedUrl.host, | ||
path: parsedUrl.path, | ||
agent: new Agent(proxy) | ||
}; | ||
options.agent = new Agent(proxy); | ||
} | ||
@@ -72,0 +74,0 @@ |
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
31445
714