mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-24 00:19:31 +08:00
With just a destination, default redir code is now 301
This commit is contained in:
parent
cd53ec9bcc
commit
7d46108c12
|
@ -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 = "/"
|
||||
|
|
Loading…
Reference in New Issue
Block a user