Skip to content

Commit 298503e

Browse files
fix: use HTTPS everywhere (ONCALL-7126) (#138)
* fix: use HTTPS everywhere * chore: fix for unit test
1 parent 93dcb08 commit 298503e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/apiTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {LOG_LEVEL_WARNING} = require("../logger");
1313
const logger = require('../logger');
1414
const log = logger.logger;
1515

16-
const RUN_TEST_HOST = 'http://www.webpagetest.org';
16+
const RUN_TEST_HOST = 'https://www.webpagetest.org';
1717
const RUN_TEST_PATH = '/runtest.php';
1818

1919
chai.use(chaiHttp);

wtp/apiCaller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const resultParser = require('./wtpResultsParser');
1313
const cloudinaryCaller = require('../cloudinary/apiCaller');
1414
const {truncateString} = require('../util/strings');
1515
const RESULTS_URL = 'https://www.webpagetest.org/jsonResult.php';
16-
const RUN_TEST_URL = 'http://www.webpagetest.org/runtest.php';
17-
const GET_TEST_STATUS = 'http://www.webpagetest.org/testStatus.php';
16+
const RUN_TEST_URL = 'https://www.webpagetest.org/runtest.php';
17+
const GET_TEST_STATUS = 'https://www.webpagetest.org/testStatus.php';
1818
const locationSelector = require('./locationSelector');
1919
const apiKeys = require('./apiKey');
2020

wtp/locationSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require("path");
66
const opentelemetry = require("@opentelemetry/api");
77
const logger = require('../logger').logger;
88

9-
const GET_LOCATIONS = 'http://www.webpagetest.org/getLocations.php?f=json';
9+
const GET_LOCATIONS = 'https://www.webpagetest.org/getLocations.php?f=json';
1010

1111
const WstMeter = opentelemetry.metrics.getMeter('default');
1212
const locationMetrics = {

0 commit comments

Comments
 (0)