fix api metadata extract from context (#1452)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-03-31 22:36:51 +03:00
parent b53005c035
commit 77176ca068

View File

@ -255,7 +255,7 @@ func (r *staticRouter) endpoint(req *http.Request) (*endpoint, error) {
} }
pMatch = true pMatch = true
ctx := req.Context() ctx := req.Context()
md, ok := metadata.FromContext(ctx) md, ok := ctx.Value(metadata.MetadataKey{}).(metadata.Metadata)
if !ok { if !ok {
md = make(metadata.Metadata) md = make(metadata.Metadata)
} }