From 8b6bee2ed3f8aec31dcdb33912665cfa88a84443 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 13 Feb 2022 04:44:52 +0300 Subject: [PATCH] Update load.js --- scripts/commands/cluster/load.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/commands/cluster/load.js b/scripts/commands/cluster/load.js index e220aba702..9a0c90043a 100644 --- a/scripts/commands/cluster/load.js +++ b/scripts/commands/cluster/load.js @@ -36,7 +36,15 @@ async function main() { const results = {} for (const [i, item] of items.entries()) { const message = `[${i + 1}/${total}] ${item.filepath}: ${item.url}` - const result = await checker.check(item, config) + const request = { + _id: item._id, + url: item.url, + http: { + referrer: item.http_referrer, + 'user-agent': item.user_agent + } + } + const result = await checker.check(request, config) if (!result.error) { logger.info(message) } else {