1
0
Fork 0

Use 302 instead of 301 for cluster redirect. Fixes #1356.

This commit is contained in:
Alan Plum 2015-06-02 14:40:19 +02:00
parent c39b0754b5
commit d785e11900
1 changed files with 6 additions and 6 deletions

View File

@ -110,12 +110,12 @@ publicController.get("/unauthorized", function() {
publicController.get("/index.html", function(req, res) {
var prefix = '/_db/' + encodeURIComponent(req.database) + applicationContext.mount;
res.status(301);
if (cluster.dispatcherDisabled()) {
res.set("Location", prefix + "/standalone.html");
} else {
res.set("Location", prefix + "/cluster.html");
}
res.status(302);
res.set("Location", prefix + (
cluster.dispatcherDisabled()
? "/standalone.html"
: "/cluster.html"
));
});
controller.activateSessions({