Skip to content

Commit dbe70a5

Browse files
committed
bug: fix conversion of status code int caddyhttp.WeakString
1 parent 50635ac commit dbe70a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func processReturn(dir Directive) (caddyhttp.StaticResponse, []caddyconfig.Warni
451451
}
452452
}
453453
} else {
454-
h.StatusCode = caddyhttp.WeakString(http.StatusFound)
454+
h.StatusCode = caddyhttp.WeakString(strconv.Itoa(http.StatusFound))
455455
h.Headers = http.Header{"Location": []string{arg}}
456456
}
457457
return h, warns

0 commit comments

Comments
 (0)