Skip to content

Commit

Permalink
refactor: remove redundant code from dupefilter middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-engine committed Sep 26, 2024
1 parent aeaa785 commit 68754a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/builtin/middlewares/dupefilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func generateSHA1FingerprintFromReq(r *http.Request) (string, error) {

// added sorted headers
for _, key := range headerKeys {
values := r.Header[key]
for _, value := range values {
for _, value := range r.Header[key] {
combinedBuf.WriteString(key)
combinedBuf.WriteString(value)
}
Expand Down

0 comments on commit 68754a2

Please sign in to comment.