Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Sergio Andres Virviescas Santana committed Apr 29, 2021
1 parent d98ff9a commit 2ce71d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ func (r *Router) handler(fn View, middle Middlewares) fasthttp.RequestHandler {

for i := 0; i < chainLen; i++ {
if err := chain[i](actx); err != nil {
statusCode := actx.Response.StatusCode()
statusCode := actx.Response.Header.StatusCode()
if statusCode == fasthttp.StatusOK {
statusCode = fasthttp.StatusInternalServerError
}

0 comments on commit 2ce71d4

Please sign in to comment.