From 51c12bba07273d2ff9230857f1f3849ffb332b9b Mon Sep 17 00:00:00 2001 From: JimZhang Date: Fri, 10 Dec 2021 09:45:58 +0800 Subject: [PATCH] Use strings.splitN split header --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index a74d7f5..b3e4ee3 100644 --- a/plugin.go +++ b/plugin.go @@ -135,7 +135,7 @@ func (p Plugin) Exec() error { } for _, value := range p.Config.Headers { - header := strings.Split(value, "=") + header := strings.SplitN(value, "=", 2) req.Header.Set(header[0], header[1]) }