mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Use chi style middle ware
This commit is contained in:
committed by
Travis Reeder
parent
570e9265f1
commit
cf2c3cf404
@@ -161,8 +161,6 @@ func prepareMiddleware(ctx context.Context) gin.HandlerFunc {
|
||||
c.Set(api.Path, routePath)
|
||||
}
|
||||
|
||||
// todo: can probably replace the "ctx" value with the Go 1.7 context on the http.Request
|
||||
c.Set("ctx", ctx)
|
||||
c.Request = c.Request.WithContext(ctx)
|
||||
c.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user