From 2c44a731c8c8c417cd6122b5775eaedf20ae689d Mon Sep 17 00:00:00 2001
From: Pierre Souchay
Date: Tue, 9 Feb 2021 19:19:40 +0100
Subject: [PATCH] Use lower case for serviceName computation of cache keys
---
agent/structs/structs.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agent/structs/structs.go b/agent/structs/structs.go
index 9b9740c00..5a10a36a1 100644
--- a/agent/structs/structs.go
+++ b/agent/structs/structs.go
@@ -602,7 +602,7 @@ func (r *ServiceSpecificRequest) CacheInfo() cache.RequestInfo {
sort.Strings(r.ServiceTags)
v, err := hashstructure.Hash([]interface{}{
r.NodeMetaFilters,
- r.ServiceName,
+ strings.ToLower(r.ServiceName),
// DEPRECATED (singular-service-tag) - remove this when upgrade RPC compat
// with 1.2.x is not required. We still need this in because <1.3 agents
// might still send RPCs with singular tag set. In fact the only place we