mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-20 19:52:04 +00:00
Backport #29534 Regression of #24107 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 5ca2971ccbc8769f7e6ee41c125db47f818e7599)
This commit is contained in:
parent
446d7bd7a7
commit
19c5642971
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue