We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f004ea6 commit 4b46498Copy full SHA for 4b46498
middleware.go
@@ -1,10 +1,8 @@
1
package alf
2
3
-import "github.com/valyala/fasthttp"
+func handleMiddleware(ctx *Ctx, m *[]Middleware, next *bool) {
4
5
-func handleMiddleware(ctx *fasthttp.RequestCtx, m []Middleware, next *bool) {
6
-
7
- for _, middleware := range m {
+ for _, middleware := range *m {
8
*next = middleware(ctx) // if middleware returns false, it will stop the execution of the route
9
if !*next {
10
break
0 commit comments