From 02845bc9fdc3e9189d44f3bd30e8609cd59c97dd Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 24 Apr 2020 21:05:09 -0600 Subject: docs: Improve template documentation slightly; use const, not literal --- modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/caddyhttp/reverseproxy/fastcgi') diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go index fdf9818..8924a6d 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go @@ -17,6 +17,7 @@ package fastcgi import ( "encoding/json" "net/http" + "strconv" "github.com/caddyserver/caddy/v2" "github.com/caddyserver/caddy/v2/caddyconfig" @@ -136,7 +137,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error }), } redirHandler := caddyhttp.StaticResponse{ - StatusCode: caddyhttp.WeakString("308"), + StatusCode: caddyhttp.WeakString(strconv.Itoa(http.StatusPermanentRedirect)), Headers: http.Header{"Location": []string{"{http.request.uri.path}/"}}, } redirRoute := caddyhttp.Route{ -- cgit v1.2.3