From 7040a8f727920fdbfd77e775302a691a70a8ec01 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Wed, 9 Feb 2022 21:57:48 +0300 Subject: [PATCH] Pass `httpClient` in `WithFieldsMap` (#38) --- actions.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actions.go b/actions.go index a81d172..09cfe50 100644 --- a/actions.go +++ b/actions.go @@ -341,9 +341,10 @@ func (c *Action) WithFieldsSlice(f []string) *Action { // are automatically converted to k=v pairs and sorted. func (c *Action) WithFieldsMap(m map[string]string) *Action { return &Action{ - w: c.w, - fields: m, - getenv: c.getenv, + w: c.w, + fields: m, + getenv: c.getenv, + httpClient: c.httpClient, } }