Skip to content

Commit

Permalink
Use .from
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.