mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated ctx to MiddlewareContext in various places.
This commit is contained in:
@@ -100,6 +100,8 @@ func (s *Server) middlewareWrapperFunc(ctx context.Context) gin.HandlerFunc {
|
||||
}
|
||||
ctx = c.MustGet("ctx").(context.Context)
|
||||
fctx := &middlewareContextImpl{Context: ctx}
|
||||
// add this context to gin context so we can grab it later
|
||||
c.Set("mctx", fctx)
|
||||
fctx.index = -1
|
||||
fctx.ginContext = c
|
||||
fctx.middlewares = s.middlewares
|
||||
|
||||
Reference in New Issue
Block a user