Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 38d7289

Browse files
jfmherokillerdaviddias
authored andcommitted
fix: pass the config protocol to http requests (#609)
Signed-off-by: noah the goodra <peterpan0413@live.com>
1 parent bb1ffe7 commit 38d7289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/request-api.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ function requestAPI (config, options, callback) {
152152
path: `${config['api-path']}${options.path}?${qs}`,
153153
port: config.port,
154154
method: method,
155-
headers: headers
155+
headers: headers,
156+
protocol: `${config.protocol}:`
156157
}, onRes(options.buffer, callback))
157158

158159
req.on('error', (err) => {

0 commit comments

Comments
 (0)