Replace magic number 308 with http.StatusPermanentRedirect

This commit is contained in:
James Raspass 2017-02-07 23:55:36 +00:00 committed by GitHub
parent d8f92baee2
commit 7419573266

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)
}