From b395fcc70f43737d454f2215fdfcd686a6e1d890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czerpak?= Date: Tue, 10 Jun 2025 19:10:23 +0200 Subject: [PATCH 1/2] fix: use HTTPS everywhere --- wtp/apiCaller.js | 4 ++-- wtp/locationSelector.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wtp/apiCaller.js b/wtp/apiCaller.js index cfc1778..f492dc6 100644 --- a/wtp/apiCaller.js +++ b/wtp/apiCaller.js @@ -13,8 +13,8 @@ const resultParser = require('./wtpResultsParser'); const cloudinaryCaller = require('../cloudinary/apiCaller'); const {truncateString} = require('../util/strings'); const RESULTS_URL = 'https://www.webpagetest.org/jsonResult.php'; -const RUN_TEST_URL = 'http://www.webpagetest.org/runtest.php'; -const GET_TEST_STATUS = 'http://www.webpagetest.org/testStatus.php'; +const RUN_TEST_URL = 'https://www.webpagetest.org/runtest.php'; +const GET_TEST_STATUS = 'https://www.webpagetest.org/testStatus.php'; const locationSelector = require('./locationSelector'); const apiKeys = require('./apiKey'); diff --git a/wtp/locationSelector.js b/wtp/locationSelector.js index 02f1b38..57425b6 100644 --- a/wtp/locationSelector.js +++ b/wtp/locationSelector.js @@ -6,7 +6,7 @@ const path = require("path"); const opentelemetry = require("@opentelemetry/api"); const logger = require('../logger').logger; -const GET_LOCATIONS = 'http://www.webpagetest.org/getLocations.php?f=json'; +const GET_LOCATIONS = 'https://www.webpagetest.org/getLocations.php?f=json'; const WstMeter = opentelemetry.metrics.getMeter('default'); const locationMetrics = { From 659f15119440952251d9a6f4ebf7c64ee0705935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czerpak?= Date: Tue, 10 Jun 2025 19:14:52 +0200 Subject: [PATCH 2/2] chore: fix for unit test --- test/apiTests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/apiTests.js b/test/apiTests.js index 5ea1780..a10b52f 100644 --- a/test/apiTests.js +++ b/test/apiTests.js @@ -13,7 +13,7 @@ const {LOG_LEVEL_WARNING} = require("../logger"); const logger = require('../logger'); const log = logger.logger; -const RUN_TEST_HOST = 'http://www.webpagetest.org'; +const RUN_TEST_HOST = 'https://www.webpagetest.org'; const RUN_TEST_PATH = '/runtest.php'; chai.use(chaiHttp);