From 0b9d110e3ea82d715125b7a08e08b4740a4d6ddd Mon Sep 17 00:00:00 2001 From: wthrajat Date: Sun, 24 May 2026 06:58:22 +0530 Subject: [PATCH] fix(proxy): use Header.Set instead of Header.Add to overwrite backend request headers --- proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 855fdc0..cf03779 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -540,7 +540,7 @@ func (p *Proxy) director(req *http.Request) { // Now overwrite header fields of the client request // with the fields from the configuration file. for name, value := range target.Headers { - req.Header.Add(name, value) + req.Header.Set(name, value) } } }