Propagate parent value to request context

This commit is contained in:
Elara 2022-05-12 17:15:43 -07:00
parent 3bcc01fdb6
commit bc7aa0fe5b
1 changed files with 2 additions and 2 deletions

View File

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