http-proxy-agent
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -0,1 +1,6 @@ | ||
0.1.0 / 2013-09-03 | ||
================== | ||
- Add initial "Proxy-Authorization" Basic authentication support | ||
0.0.2 / 2013-07-11 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -79,2 +79,8 @@ | ||
// inject the `Proxy-Authorization` header if necessary | ||
var auth = this.proxy.auth; | ||
if (auth) { | ||
req.setHeader('Proxy-Authorization', 'Basic ' + new Buffer(auth).toString('base64')); | ||
} | ||
Agent.prototype.addRequest.apply(this, arguments); | ||
@@ -81,0 +87,0 @@ }; |
{ | ||
"name": "http-proxy-agent", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTP", | ||
@@ -5,0 +5,0 @@ "main": "http-proxy-agent.js", |
7906
156