diff --git a/caddyhttp/redirect/setup.go b/caddyhttp/redirect/setup.go index da797ab0..cfdab278 100644 --- a/caddyhttp/redirect/setup.go +++ b/caddyhttp/redirect/setup.go @@ -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) }