Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit ab42eee

Browse files
committed
fix: urlencode proxy username and password
1 parent 0c1ca47 commit ab42eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var createBrowserStackClient = function (/* config.browserStack */config) {
9898
if (config.proxyHost && config.proxyPort) {
9999
config.proxyProtocol = config.proxyProtocol || 'http'
100100
var proxyAuth = (config.proxyUser && config.proxyPass)
101-
? (config.proxyUser + ':' + config.proxyPass + '@') : ''
101+
? (encodeURIComponent(config.proxyUser) + ':' + encodeURIComponent(config.proxyPass) + '@') : ''
102102
options.proxy = config.proxyProtocol + '://' + proxyAuth + config.proxyHost + ':' + config.proxyPort
103103
}
104104

0 commit comments

Comments
 (0)