From 44398e405ffe297997c6b9c8dbb97f966926b65a Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 3 Mar 2024 08:14:12 +0800 Subject: Fix incorrect cookie path for AppSubURL (#29534) Regression of #24107 --- routers/common/middleware.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') diff --git a/routers/common/middleware.go b/routers/common/middleware.go index 1ee4c629ad..c7c75fb099 100644 --- a/routers/common/middleware.go +++ b/routers/common/middleware.go @@ -38,6 +38,7 @@ func ProtocolMiddlewares() (handlers []any) { }) }) + // wrap the request and response, use the process context and add it to the process manager handlers = append(handlers, func(next http.Handler) http.Handler { return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) { ctx, _, finished := process.GetManager().AddTypedContext(req.Context(), fmt.Sprintf("%s: %s", req.Method, req.RequestURI), process.RequestProcessType, true) -- cgit v1.2.3