Skip to content

Commit

Permalink
use code 307 for master redirects (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Jun 5, 2020
1 parent ce7548d commit 7d03732
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
Expand Up @@ -253,7 +253,7 @@ 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;
console.log("Redirecting slave request to master:", url);
res.redirect(url);
res.redirect(307, url);
}else{
console.warn("Unable to redirect slave request to master, as no master host is configured");
}
Expand Down

1 comment on commit 7d03732

@InventivetalentDev
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.