From 77176ca06872826d3c0824dfcf4629df87f0367b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 31 Mar 2020 22:36:51 +0300 Subject: [PATCH] fix api metadata extract from context (#1452) Signed-off-by: Vasiliy Tolstov --- static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.go b/static.go index 2f8a096..f391cd5 100644 --- a/static.go +++ b/static.go @@ -255,7 +255,7 @@ func (r *staticRouter) endpoint(req *http.Request) (*endpoint, error) { } pMatch = true ctx := req.Context() - md, ok := metadata.FromContext(ctx) + md, ok := ctx.Value(metadata.MetadataKey{}).(metadata.Metadata) if !ok { md = make(metadata.Metadata) }