Skip to content

Commit

Permalink
fix: Compare using strings.EqualFold
Browse files Browse the repository at this point in the history
  • Loading branch information
domdom82 authored and geofffranks committed Apr 29, 2024
1 parent 0ac37d3 commit 35ae37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/hop_by_hop.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (h *HopByHop) SanitizeRequestConnection(r *http.Request) {
trimmedValue := strings.TrimSpace(values[i])
found := false
for _, item := range h.cfg.HopByHopHeadersToFilter {
if strings.ToLower(item) == strings.ToLower(trimmedValue) {
if strings.EqualFold(item, trimmedValue) {
found = true
break
}
Expand Down

0 comments on commit 35ae37e

Please sign in to comment.