From 04d93f2e7e14925adc782847a2a53d3ad0b57b88 Mon Sep 17 00:00:00 2001 From: unai-programmfabrik Date: Thu, 29 Jul 2021 17:45:41 +0200 Subject: [PATCH] set header_from_store if not array (#60) --- pkg/lib/api/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lib/api/request.go b/pkg/lib/api/request.go index c5916ed..21b7bf0 100755 --- a/pkg/lib/api/request.go +++ b/pkg/lib/api/request.go @@ -194,7 +194,7 @@ func (request Request) buildHttpRequest() (req *http.Request, err error) { if ownHeader == "" { continue } - req.Header.Add(headerName, ownHeader) + req.Header.Set(headerName, ownHeader) } else { return nil, fmt.Errorf("could not set header '%s' from Datastore: '%s' is not a string. Got value: '%v'", headerName, datastoreKey, headersInt) }