Skip to content

Commit 9ca95ec

Browse files
committed
Use .from
1 parent 8a7c86e commit 9ca95ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
128128
if (connectOptions.proxyAuth) {
129129
connectOptions.headers = connectOptions.headers || {}
130130
connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
131-
new Buffer(connectOptions.proxyAuth).toString('base64')
131+
Buffer.from(connectOptions.proxyAuth).toString('base64')
132132
}
133133

134134
debug('making CONNECT request')

0 commit comments

Comments
 (0)