From 104bfaba849f7b86c9c64fd3d8b40b919cc60daa Mon Sep 17 00:00:00 2001 From: dpolakovics Date: Tue, 9 May 2023 19:30:34 +0200 Subject: [PATCH] Update plugin.go Fix if header has an "=" Character --- plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index a74d7f5..56b40b2 100644 --- a/plugin.go +++ b/plugin.go @@ -136,7 +136,8 @@ func (p Plugin) Exec() error { for _, value := range p.Config.Headers { header := strings.Split(value, "=") - req.Header.Set(header[0], header[1]) + headerName, header := header[0], header[1:] + req.Header.Set(headerName, strings.Join(header, "=")) } if p.Config.Username != "" && p.Config.Password != "" {