Fix HTTPErrorHandler always returning 200 (#109)
This commit is contained in:
parent
4c4a503cdc
commit
885a6ad7bf
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ func (e *Error) Page(err error, ctx echo.Context) {
|
|||
}
|
||||
|
||||
// Set the status code.
|
||||
ctx.Response().Status = code
|
||||
ctx.Response().WriteHeader(code)
|
||||
|
||||
// Render the error page.
|
||||
if err = pages.Error(ctx, code); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue