mirror of https://gitee.com/bigwinds/arangodb
Use 302 instead of 301 for cluster redirect. Fixes #1356.
This commit is contained in:
parent
c39b0754b5
commit
d785e11900
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue