We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8cfb44 commit 1591b84Copy full SHA for 1591b84
1 file changed
pkg/proxy/main.go
@@ -80,12 +80,7 @@ func (p *ProxyRouter) handleProxy(c *gin.Context) {
80
return
81
}
82
83
- // Add custom headers to the request
84
- for name, values := range p.proxyHeaders {
85
- for _, value := range values {
86
- c.Request.Header.Add(name, value)
87
- }
88
+ c.Request.Header = p.proxyHeaders
89
90
p.proxy.ServeHTTP(c.Writer, c.Request)
91
0 commit comments