Skip to content

Commit

Permalink
Merge pull request #209 from emartech/https-translations
Browse files Browse the repository at this point in the history
fix(translations): collect translations through HTTPS
  • Loading branch information
potato authored Jan 7, 2025
2 parents 8f989fa + e46a631 commit 83ae918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion translations/collect.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CollectTranslations.prototype = {
'translate_' + this._translationId + '.js.php';

return (
'http://' +
'https://' +
this._environment +
'/js/translate/' +
filename +
Expand Down
2 changes: 1 addition & 1 deletion translations/middleware.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83ae918

Please sign in to comment.