mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08: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,
|
||||
expectedBody: fmt.Sprintf("%d %s\n", http.StatusForbidden,
|
||||
http.StatusText(http.StatusForbidden)),
|
||||
expectedLog: fmt.Sprintf("could not load error page %s: %v\n",
|
||||
"not_exist_file", notExistErr),
|
||||
expectedLog: fmt.Sprintf("[HTTP %d] could not load error page %s: %v\n",
|
||||
http.StatusForbidden, "not_exist_file", notExistErr),
|
||||
expectedErr: nil,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user