Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Commit 01cca79

Browse files
author
coco50511
committed
Fixed an error
1 parent 0a7f27e commit 01cca79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/get-request.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ module.exports = function(chain, timeout, proxyUrl, headers) {
2929
var baseUrl = pickChainUrl(chain);
3030
if (proxyUrl && 0 < proxyUrl.length) {
3131
if (proxyUrl.charAt(proxyUrl.length - 1) == '/') {
32-
baseUrl = proxyUrl + '/' + baseUrl;
33-
} else {
3432
baseUrl = proxyUrl + baseUrl;
33+
} else {
34+
baseUrl = proxyUrl + '/' + baseUrl;
3535
}
3636
}
37-
param[baseUrl] = baseUrl;
37+
param['baseURL'] = baseUrl;
3838

3939
if (headers) {
40-
param[headers] = headers;
40+
param['headers'] = headers;
4141
}
4242

4343
var client = axios.create(param);

0 commit comments

Comments
 (0)