Skip to content

Commit

Permalink
Merge pull request #35 from kurtkanaskie/issue34
Browse files Browse the repository at this point in the history
Fix for issue34 - uppercase verb in conditions
  • Loading branch information
srinandan authored Jul 29, 2022
2 parents 9d7204b + cd3f016 commit 5792a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundlegen/proxies/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package proxies
import (
"encoding/xml"
"fmt"
"strings"

proxytypes "github.com/apigee/apigeecli/bundlegen/common"
)
Expand Down Expand Up @@ -69,7 +70,7 @@ func AddFlow(operationId string, keyPath string, method string, description stri
flow := proxytypes.FlowDef{}
flow.Name = operationId
flow.Description = description
flow.Condition.ConditionData = "(proxy.pathsuffix MatchesPath \"" + keyPath + "\") and (request.verb = \"" + method + "\")"
flow.Condition.ConditionData = "(proxy.pathsuffix MatchesPath \"" + keyPath + "\") and (request.verb = \"" + strings.ToUpper(method) + "\")"
proxyEndpoint.Flows.Flow = append(proxyEndpoint.Flows.Flow, flow)
}

Expand Down

0 comments on commit 5792a5c

Please sign in to comment.