From bc7aa0fe5b76797385381e694719d8f1e1753b4f Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Thu, 12 May 2022 17:15:43 -0700 Subject: [PATCH] Propagate parent value to request context --- server/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/context.go b/server/context.go index d389c11..e842504 100644 --- a/server/context.go +++ b/server/context.go @@ -84,8 +84,8 @@ func (ctx *Context) Deadline() (time.Time, bool) { } // Value always returns nil as this context stores no values -func (ctx *Context) Value(_ any) any { - return nil +func (ctx *Context) Value(key any) any { + return ctx.ctx.Value(key) } // Err returns context.Canceled if the context was canceled,