Skip to content

Commit 2ce71d4

Browse files
author
Sergio Andres Virviescas Santana
committed
Fix typo
1 parent d98ff9a commit 2ce71d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *Router) handler(fn View, middle Middlewares) fasthttp.RequestHandler {
123123

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

0 commit comments

Comments
 (0)