From 3b192f6ff5f2f7458dc98f2c876be119d13230de Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Thu, 2 Jul 2026 02:04:41 +0900 Subject: [PATCH] Add user agent and log urls on the sync-assets script --- frontend/sync-assets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/sync-assets.js b/frontend/sync-assets.js index 447557a51..f0797b563 100644 --- a/frontend/sync-assets.js +++ b/frontend/sync-assets.js @@ -80,9 +80,9 @@ const downloadFile = (filePath, url) => { } return new Promise((resolve, reject) => { - https.get(url, (response) => { + https.get(url, { headers: { 'user-agent': 'node.js' } }, (response) => { if (response.statusCode < 200 || response.statusCode > 299) { - reject(new Error(`HTTP Error ${response.statusCode} while fetching '${filePath}'`)); + reject(new Error(`HTTP Error ${response.statusCode} while fetching '${url}' (destination '${filePath}')`)); return; }