Skip to content

Commit

Permalink
feat: change redirect status code #173
Browse files Browse the repository at this point in the history
  • Loading branch information
David Longworth committed Jun 1, 2017
1 parent 9f1320c commit 3e154a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dadi/lib/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Api.prototype.redirectListener = function (req, res) {
var location = 'https://' + hostname + ':' + port + req.url

res.setHeader('Location', location)
res.statusCode = 301
res.statusCode = 302
res.end()
}

Expand Down

0 comments on commit 3e154a7

Please sign in to comment.