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);