From 74e32e95f051c6638d73773dfa79c630cfa643e5 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 12 Apr 2020 14:40:37 +0100 Subject: [PATCH] fix metadata parsing --- rpc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc.go b/rpc.go index d396274..58493c4 100644 --- a/rpc.go +++ b/rpc.go @@ -304,6 +304,7 @@ func requestPayload(r *http.Request) ([]byte, error) { // get fields from url path for k, v := range md { + k = strings.ToLower(k) // filter own keys if strings.HasPrefix(k, "x-api-field-") { matches[strings.TrimPrefix(k, "x-api-field-")] = v