diff --git a/app/router.go b/app/router.go index 28ad84c5a..c3347092c 100644 --- a/app/router.go +++ b/app/router.go @@ -43,7 +43,7 @@ type CtxHandlerFunc func(context.Context, http.ResponseWriter, *http.Request) func requestContextDecorator(f CtxHandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - ctx := context.WithValue(context.Background(), RequestCtxKey, r) + ctx := context.WithValue(r.Context(), RequestCtxKey, r) f(ctx, w, r) } }