mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
Better HTTP status in basic auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@ -100,7 +100,7 @@ func (c *Context) NoContent(code int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Error invokes the registered HTTP error handler.
|
||||
// Error invokes the registered HTTP error handler. Usually used by middleware.
|
||||
func (c *Context) Error(err error) {
|
||||
c.echo.httpErrorHandler(err, c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user