Skip to content

Commit 213cb0e

Browse files
committed
use equal fold
1 parent 975390c commit 213cb0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/overlay/manual-mappings.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ func applyManualMappings(resources map[string]*ResourceInfo, manualMappings *Man
8080

8181
func getManualParameterMatch(path, method, paramName string, manualMappings *ManualMappings) (string, bool) {
8282
for _, mapping := range manualMappings.Operations {
83-
if mapping.Path == path && strings.ToLower(mapping.Method) == strings.ToLower(method) && mapping.Action == "match" {
84-
// For match mappings, we expect the value to be in format "param_name:field_name"
83+
if mapping.Path == path && strings.EqualFold(mapping.Method, method) && mapping.Action == "match" {
8584
parts := strings.SplitN(mapping.Value, ":", 2)
8685
if len(parts) == 2 && parts[0] == paramName {
8786
return parts[1], true

0 commit comments

Comments
 (0)