fix metadata parsing
This commit is contained in:
parent
b08c636b44
commit
a056bdce7c
@ -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