With just a destination, default redir code is now 301

This commit is contained in:
Matthew Holt 2015-04-26 20:20:15 -06:00
parent cd53ec9bcc
commit 7d46108c12

View File

@ -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 = "/"