mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Merge pull request #1410 from JRaspass/patch-1
Replace magic number 308 with http.StatusPermanentRedirect
This commit is contained in:
commit
cdb79a60f2
1 changed files with 1 additions and 1 deletions
|
@ -165,5 +165,5 @@ var httpRedirs = map[string]int{
|
||||||
"304": http.StatusNotModified,
|
"304": http.StatusNotModified,
|
||||||
"305": http.StatusUseProxy,
|
"305": http.StatusUseProxy,
|
||||||
"307": http.StatusTemporaryRedirect,
|
"307": http.StatusTemporaryRedirect,
|
||||||
"308": 308, // Permanent Redirect (RFC 7238)
|
"308": http.StatusPermanentRedirect, // Permanent Redirect (RFC 7238)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue