mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 15:45:39 +00:00
use Set() instead of Add() when attaching additional headers
This commit is contained in:
@@ -86,7 +86,7 @@ func NewHTTPS2HTTPPlugin(params map[string]string) (Plugin, error) {
|
||||
req.Host = p.hostHeaderRewrite
|
||||
}
|
||||
for k, v := range p.headers {
|
||||
req.Header.Add(k, v)
|
||||
req.Header.Set(k, v)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user