Comparing version 1.9.7-8 to 1.9.7-9
@@ -190,12 +190,13 @@ // Copyright 2012 The Obvious Corporation. | ||
if (proxyUrl) { | ||
console.log('Using proxy ' + proxyUrl) | ||
// Print using proxy | ||
var proxy = url.parse(proxyUrl) | ||
// Turn basic authorization into proxy-authorization. | ||
if (proxy.auth) { | ||
options.headers['Proxy-Authorization'] = 'Basic ' + new Buffer(proxy.auth).toString('base64') | ||
delete proxy.auth | ||
// Mask password | ||
proxy.auth = proxy.auth.replace(/:.*$/, ':******') | ||
} | ||
console.log('Using proxy ' + url.format(proxy)) | ||
options.proxy = url.format(proxy) | ||
// Enable proxy | ||
options.proxy = proxyUrl | ||
@@ -202,0 +203,0 @@ // If going through proxy, spoof the User-Agent, since may commerical proxies block blank or unknown agents in headers |
{ | ||
"name": "phantomjs", | ||
"version": "1.9.7-8", | ||
"version": "1.9.7-9", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "phantomjs", |
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
389
9
30685