Skip to content

Commit

Permalink
set header_from_store if not array (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
unai-programmfabrik authored Jul 29, 2021
1 parent 6adecc5 commit 04d93f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/api/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 04d93f2

Please sign in to comment.