From fb46db740d2a06d2ec9251e9b12b6f975c405e3b Mon Sep 17 00:00:00 2001 From: anirut Date: Thu, 1 Sep 2022 00:37:18 +0700 Subject: [PATCH] :zap: add headers before invoke --- transport/http/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/transport/http/client.go b/transport/http/client.go index c0ad5ee38..29e16976e 100644 --- a/transport/http/client.go +++ b/transport/http/client.go @@ -221,6 +221,9 @@ func (client *Client) Invoke(ctx context.Context, method, path string, args inte if err != nil { return err } + for key, value := range c.headers { + req.Header.Set(key, value) + } if contentType != "" { req.Header.Set("Content-Type", c.contentType) }