Fix HTTPErrorHandler always returning 200 (#109)
This commit is contained in:
parent
3cfcb43031
commit
9e15bceace
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.
|
// Set the status code.
|
||||||
ctx.Response().Status = code
|
ctx.Response().WriteHeader(code)
|
||||||
|
|
||||||
// Render the error page.
|
// Render the error page.
|
||||||
if err = pages.Error(ctx, code); err != nil {
|
if err = pages.Error(ctx, code); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue