Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use .from
  • Loading branch information
mikeal committed Mar 5, 2017
1 parent 8a7c86e commit 9ca95ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -128,7 +128,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
if (connectOptions.proxyAuth) {
connectOptions.headers = connectOptions.headers || {}
connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
new Buffer(connectOptions.proxyAuth).toString('base64')
Buffer.from(connectOptions.proxyAuth).toString('base64')
}

debug('making CONNECT request')
Expand Down

0 comments on commit 9ca95ec

Please sign in to comment.