Commit 7d46108c authored by Matthew Holt's avatar Matthew Holt

With just a destination, default redir code is now 301

parent cd53ec9b
......@@ -55,7 +55,7 @@ func parse(c middleware.Controller) ([]Rule, error) {
// To specified
rule.From = "/"
rule.To = args[0]
rule.Code = http.StatusTemporaryRedirect
rule.Code = http.StatusMovedPermanently
case 2:
// To and Code specified
rule.From = "/"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment