diff --git a/processors.go b/processors.go index 180a957..83f6696 100644 --- a/processors.go +++ b/processors.go @@ -451,7 +451,7 @@ func processReturn(dir Directive) (caddyhttp.StaticResponse, []caddyconfig.Warni } } } else { - h.StatusCode = caddyhttp.WeakString(http.StatusFound) + h.StatusCode = caddyhttp.WeakString(strconv.Itoa(http.StatusFound)) h.Headers = http.Header{"Location": []string{arg}} } return h, warns