Skip to content

Commit

Permalink
bug: fix conversion of status code int caddyhttp.WeakString
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed90 committed Jan 15, 2022
1 parent 50635ac commit dbe70a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbe70a5

Please sign in to comment.