From cd3f016d2ec263bbde52e4c7918b8eb9799f970f Mon Sep 17 00:00:00 2001 From: Kurt Kanaskie Date: Wed, 13 Jul 2022 15:42:18 -0400 Subject: [PATCH] Fix for issue34 --- bundlegen/proxies/proxies.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundlegen/proxies/proxies.go b/bundlegen/proxies/proxies.go index c9367f666..389958c34 100644 --- a/bundlegen/proxies/proxies.go +++ b/bundlegen/proxies/proxies.go @@ -17,6 +17,7 @@ package proxies import ( "encoding/xml" "fmt" + "strings" proxytypes "github.com/apigee/apigeecli/bundlegen/common" ) @@ -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) }