mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-05 14:44:49 -04:00
errors: Restore http status text in test
This commit is contained in:
parent
6001c94f30
commit
da7562367c
@ -82,8 +82,8 @@ func TestErrors(t *testing.T) {
|
|||||||
expectedCode: 0,
|
expectedCode: 0,
|
||||||
expectedBody: fmt.Sprintf("%d %s\n", http.StatusForbidden,
|
expectedBody: fmt.Sprintf("%d %s\n", http.StatusForbidden,
|
||||||
http.StatusText(http.StatusForbidden)),
|
http.StatusText(http.StatusForbidden)),
|
||||||
expectedLog: fmt.Sprintf("could not load error page %s: %v\n",
|
expectedLog: fmt.Sprintf("[HTTP %d] could not load error page %s: %v\n",
|
||||||
"not_exist_file", notExistErr),
|
http.StatusForbidden, "not_exist_file", notExistErr),
|
||||||
expectedErr: nil,
|
expectedErr: nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user