mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
set status for the error response
This commit is contained in:
parent
d395633749
commit
02b8640e44
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ func newErrorResponse(status int) *http.Response {
|
|||
statusText := http.StatusText(status)
|
||||
resp := &http.Response{
|
||||
Status: statusText,
|
||||
StatusCode: status,
|
||||
Header: make(http.Header),
|
||||
Body: io.NopCloser(strings.NewReader(statusText)),
|
||||
ContentLength: int64(len(statusText)),
|
||||
|
|
Loading…
Reference in a new issue