From 030f0afd7bff3e5bf883b80495692daaea95f791 Mon Sep 17 00:00:00 2001 From: noah the goodra Date: Mon, 16 Oct 2017 10:58:01 -0500 Subject: [PATCH] pass the config protocol to http requests Signed-off-by: noah the goodra --- src/utils/request-api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/request-api.js b/src/utils/request-api.js index 5f78b1e07..951d5d6c0 100644 --- a/src/utils/request-api.js +++ b/src/utils/request-api.js @@ -152,7 +152,8 @@ function requestAPI (config, options, callback) { path: `${config['api-path']}${options.path}?${qs}`, port: config.port, method: method, - headers: headers + headers: headers, + protocol: `${config.protocol}:` }, onRes(options.buffer, callback)) req.on('error', (err) => {