0
Fork 0
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:
Matt Holt 2017-02-07 17:10:05 -07:00 committed by GitHub
commit cdb79a60f2

View file

@ -165,5 +165,5 @@ var httpRedirs = map[string]int{
"304": http.StatusNotModified,
"305": http.StatusUseProxy,
"307": http.StatusTemporaryRedirect,
"308": 308, // Permanent Redirect (RFC 7238)
"308": http.StatusPermanentRedirect, // Permanent Redirect (RFC 7238)
}