pull/1019/head
Mikunj 6 years ago
parent 496afa85cb
commit a9555e8439

@ -3,13 +3,11 @@
const nodeFetch = require('node-fetch');
const https = require('https');
const { parse } = require('url');
const snodeHttpsAgent = new https.Agent({
rejectUnauthorized: false,
});
const LOKI_EPHEMKEY_HEADER = 'X-Loki-EphemKey';
const endpointBase = '/storage_rpc/v1';
// Request index for debugging
@ -410,8 +408,6 @@ const lokiFetch = async (url, options = {}, targetNode = null) => {
const timeout = options.timeout || 10000;
const method = options.method || 'GET';
const address = parse(url).hostname;
const fetchOptions = {
...options,
timeout,

Loading…
Cancel
Save