Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #189 from zarathustra323/fix-express-redir-dep
Browse files Browse the repository at this point in the history
Fix Express redirect deprecation notice
  • Loading branch information
brandonbk authored Nov 12, 2021
2 parents 399922e + 1859fef commit d5b3cb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = () => (req, res, next) => {
if (idxUserExists && incomingEncId && incomingEncId !== currentEncId) {
const params = (new URLSearchParams(q)).toString();
const redirectTo = `${req.path}${params ? `?${params}` : ''}`;
res.redirect(redirectTo, 302);
res.redirect(302, redirectTo);
} else {
next();
}
Expand Down

0 comments on commit d5b3cb9

Please sign in to comment.