Open alessiodallapiazza opened 1 week ago
This PR updates the copyHeaders function to avoid the canonicalization of HTTP header keys caused by the Add method. Instead of using Add, the function now directly assigns header values from src to dst, preserving their original casing.
copyHeaders
Add
src
dst
Let me know if further adjustments are needed!
Closes: https://github.com/elazarl/goproxy/issues/403
This PR updates the
copyHeaders
function to avoid the canonicalization of HTTP header keys caused by theAdd
method. Instead of usingAdd
, the function now directly assigns header values fromsrc
todst
, preserving their original casing.Let me know if further adjustments are needed!
Closes: https://github.com/elazarl/goproxy/issues/403