https-proxy-agent
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -0,1 +1,6 @@ | ||
0.2.0 / 2013-09-03 | ||
================== | ||
- Add initial "Proxy-Authorization" Basic authentication support | ||
0.1.0 / 2013-07-21 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -81,3 +81,3 @@ | ||
function ondata (b) { | ||
console.log(b.length, b, b.toString()); | ||
//console.log(b.length, b, b.toString()); | ||
// TODO: verify that the socket is properly connected, check response... | ||
@@ -106,4 +106,8 @@ | ||
var hostname = opts.host + ':' + opts.port; | ||
var msg = 'CONNECT ' + hostname + ' HTTP/1.1\r\n' + | ||
'Host: ' + hostname + '\r\n' + | ||
var msg = 'CONNECT ' + hostname + ' HTTP/1.1\r\n'; | ||
var auth = this.proxy.auth; | ||
if (auth) { | ||
msg += 'Proxy-Authorization: Basic ' + new Buffer(auth).toString('base64') + '\r\n'; | ||
} | ||
msg += 'Host: ' + hostname + '\r\n' + | ||
'\r\n'; | ||
@@ -110,0 +114,0 @@ socket.write(msg); |
{ | ||
"name": "https-proxy-agent", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS", | ||
@@ -5,0 +5,0 @@ "main": "https-proxy-agent.js", |
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
9749
152