There was an error while loading. Please reload this page.
1 parent 0c1ca47 commit ab42eeeCopy full SHA for ab42eee
1 file changed
index.js
@@ -98,7 +98,7 @@ var createBrowserStackClient = function (/* config.browserStack */config) {
98
if (config.proxyHost && config.proxyPort) {
99
config.proxyProtocol = config.proxyProtocol || 'http'
100
var proxyAuth = (config.proxyUser && config.proxyPass)
101
- ? (config.proxyUser + ':' + config.proxyPass + '@') : ''
+ ? (encodeURIComponent(config.proxyUser) + ':' + encodeURIComponent(config.proxyPass) + '@') : ''
102
options.proxy = config.proxyProtocol + '://' + proxyAuth + config.proxyHost + ':' + config.proxyPort
103
}
104
0 commit comments