fix metadata parsing

This commit is contained in:
Asim Aslam 2020-04-12 14:40:37 +01:00 committed by Vasiliy Tolstov
parent abbfa17a49
commit 74e32e95f0

1
rpc.go
View File

@ -304,6 +304,7 @@ func requestPayload(r *http.Request) ([]byte, error) {
// get fields from url path // get fields from url path
for k, v := range md { for k, v := range md {
k = strings.ToLower(k)
// filter own keys // filter own keys
if strings.HasPrefix(k, "x-api-field-") { if strings.HasPrefix(k, "x-api-field-") {
matches[strings.TrimPrefix(k, "x-api-field-")] = v matches[strings.TrimPrefix(k, "x-api-field-")] = v