fix metadata parsing
This commit is contained in:
parent
abbfa17a49
commit
74e32e95f0
1
rpc.go
1
rpc.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user