Skip to content

Commit

Permalink
force https redirect
Browse files Browse the repository at this point in the history
InventivetalentDev committed Mar 27, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
InventivetalentDev Haylee Schäfer
1 parent e7f5c77 commit 113d5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
@@ -289,7 +289,7 @@ module.exports.makeDownloadFile = function (config, resource, type = ".jar") {

module.exports.redirectToMaster = function (req, res, config) {
if (config.server.masterHost && config.server.masterHost.length > 0) {
let url = req.protocol + "://" + config.server.masterHost + req.originalUrl;
let url = "https://" + config.server.masterHost + req.originalUrl;
console.log("Redirecting slave request to master:", url);
res.redirect(307, url);
} else {

0 comments on commit 113d5a4

Please sign in to comment.