Skip to content

Commit 1ee727e

Browse files
committed
ignore query
1 parent 9a725fe commit 1ee727e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/http/cache.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ func (h handler) getCacheKey(req *http.Request) string {
110110
query := req.URL.Query()
111111
keys := make([]string, 0, len(query))
112112
for k := range query {
113-
if _, ok := h.cfg.HashQueryIgnore[k]; !ok {
114-
keys = append(keys, k)
113+
if _, ok := h.cfg.HashQueryIgnore[strings.ToLower(k)]; ok {
114+
continue
115115
}
116+
keys = append(keys, k)
116117
}
117118
sort.Strings(keys)
118119
for _, key := range keys {

0 commit comments

Comments
 (0)