mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-21 19:17:40 +08:00
Replace magic number 308 with http.StatusPermanentRedirect
This commit is contained in:
parent
d8f92baee2
commit
7419573266
@ -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…
x
Reference in New Issue
Block a user