Skip to content

Commit

Permalink
avoid canonicalization
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodallapiazza authored and elazarl committed Dec 14, 2024
1 parent 3df585c commit 8f71f01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ func copyHeaders(dst, src http.Header, keepDestHeaders bool) {
}
}
for k, vs := range src {
for _, v := range vs {
dst.Add(k, v)
}
// direct assignment to avoid canonicalization
dst[k] = append([]string(nil), vs...)
}
}

Expand Down

0 comments on commit 8f71f01

Please sign in to comment.