Skip to content

Commit

Permalink
Merge pull request #563 from ReneWerner87/master
Browse files Browse the repository at this point in the history
🚀 Better performance for MethodNotAllowed process
  • Loading branch information
Fenny authored Jul 8, 2020
2 parents 9457503 + d2e85a1 commit 0e95938
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
Expand Up @@ -126,7 +126,7 @@ func (app *App) handler(rctx *fasthttp.RequestCtx) {
setETag(ctx, false)
}
// Scan stack for other methods
if ctx.Fasthttp.Response.StatusCode() == StatusNotFound {
if !match || ctx.Fasthttp.Response.StatusCode() == StatusNotFound {
setMethodNotAllowed(ctx)
}
// Release Ctx
Expand Down

0 comments on commit 0e95938

Please sign in to comment.