File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var tls = require('tls');
88var url = require ( 'url' ) ;
99var Agent = require ( 'agent-base' ) ;
1010var inherits = require ( 'util' ) . inherits ;
11+ var debug = require ( 'debug' ) ( 'https-proxy-agent' ) ;
1112
1213/**
1314 * Module exports.
@@ -26,6 +27,8 @@ function HttpsProxyAgent (opts) {
2627 if ( ! ( this instanceof HttpsProxyAgent ) ) return new HttpsProxyAgent ( opts ) ;
2728 if ( 'string' == typeof opts ) opts = url . parse ( opts ) ;
2829 if ( ! opts ) throw new Error ( 'an HTTP(S) proxy server `host` and `port` must be specified!' ) ;
30+ debug ( 'creating new HttpsProxyAgent instance: %j' , opts ) ;
31+
2932 Agent . call ( this ) ;
3033
3134 var proxy = clone ( opts , { } ) ;
Original file line number Diff line number Diff line change 2222 "url" : " https://github.com/TooTallNate/node-https-proxy-agent/issues"
2323 },
2424 "dependencies" : {
25- "agent-base" : " ~0.0.1"
25+ "agent-base" : " ~0.0.1" ,
26+ "debug" : " ~0.7.2"
2627 },
2728 "devDependencies" : {
2829 "mocha" : " ~1.12.0"
You can’t perform that action at this time.
0 commit comments