From ff357882ac8f8cfa6455e71ab7b20e71993d4ab0 Mon Sep 17 00:00:00 2001 From: zhouwenfeng Date: Wed, 14 Aug 2019 20:36:10 +0800 Subject: [PATCH] use Set() instead of Add() when attaching additional headers --- models/plugin/https2http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/plugin/https2http.go b/models/plugin/https2http.go index d769f2a..f840ebd 100644 --- a/models/plugin/https2http.go +++ b/models/plugin/https2http.go @@ -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) } }, }