Fix incorrect cookie path for AppSubURL (#29534)

Regression of #24107

(cherry picked from commit 44398e405ffe297997c6b9c8dbb97f966926b65a)
This commit is contained in:
wxiaoguang 2024-03-03 08:14:12 +08:00 committed by Earl Warren
parent 318634ef74
commit ff7a032c74
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 6 additions and 2 deletions

View file

@ -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)