From d0a368340a541a98f02429955f132e6e7d6cfd54 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 31 Mar 2020 21:59:35 +0300 Subject: [PATCH] api/handler/rpc: fix metadata cleanup (#1451) Signed-off-by: Vasiliy Tolstov --- rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.go b/rpc.go index c6bd6da..d7c3c75 100644 --- a/rpc.go +++ b/rpc.go @@ -289,8 +289,8 @@ func requestPayload(r *http.Request) ([]byte, error) { for k, v := range md { if strings.HasPrefix(k, "x-api-field-") { matches[strings.TrimPrefix(k, "x-api-field-")] = v + delete(md, k) } - delete(md, k) } // restore context without fields