From 74195732667f338f7a93ed737d6f0562a118ded4 Mon Sep 17 00:00:00 2001 From: James Raspass Date: Tue, 7 Feb 2017 23:55:36 +0000 Subject: [PATCH] Replace magic number 308 with http.StatusPermanentRedirect --- caddyhttp/redirect/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }