From e46a631bd69ad88a3b04a2075e410c6a23ce6324 Mon Sep 17 00:00:00 2001 From: potato Date: Tue, 7 Jan 2025 14:51:15 +0100 Subject: [PATCH] fix(translations): collect translations through HTTPS Co-authored-by: llosonczy --- translations/collect.js | 2 +- translations/middleware.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translations/collect.js b/translations/collect.js index 1e6e6a3..1dc062b 100644 --- a/translations/collect.js +++ b/translations/collect.js @@ -52,7 +52,7 @@ CollectTranslations.prototype = { 'translate_' + this._translationId + '.js.php'; return ( - 'http://' + + 'https://' + this._environment + '/js/translate/' + filename + diff --git a/translations/middleware.spec.js b/translations/middleware.spec.js index e6f3964..4c5c33a 100644 --- a/translations/middleware.spec.js +++ b/translations/middleware.spec.js @@ -261,7 +261,7 @@ describe('Suite translation middleware', function() { var httpBackendRespondWith = function(errorCode, language, data) { - nock('http://testEnvironment') + nock('https://testEnvironment') .get('/js/translate/translate_' + testTranslation + '.js.php?lang=' + language) .times(1) .reply(errorCode, data);