diff --git a/context.go b/context.go index ddc1550f..8382c168 100644 --- a/context.go +++ b/context.go @@ -1436,7 +1436,7 @@ func (c *Context) Value(key any) any { if key == ContextKey { return c } - if val, exists := c.Get(keyAsString); exists { + if val, exists := c.Get(key); exists { return val } if !c.hasRequestContext() {