diff options
author | siddharth <s@ricketyspace.net> | 2022-04-24 00:11:08 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2022-04-24 00:11:08 -0400 |
commit | 5cd2e623c946081d86329dc758a2efee3ddee919 (patch) | |
tree | 6c27a26f9aa1f32b553665621512d1e334f048cb | |
parent | 9dd7a966b13a52caa9431bb2de25d4fd5ee1518c (diff) |
http/client: update Get
Feed result of `buildHeaders` directly to `clienn.Do`
-rw-r--r-- | http/client/client.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/http/client/client.go b/http/client/client.go index adf6d44..4df5561 100644 --- a/http/client/client.go +++ b/http/client/client.go @@ -19,9 +19,7 @@ func Get(url string) (*http.Response, error) { if err != nil { return nil, err } - req = buildHeaders(req) - - return client.Do(req) + return client.Do(buildHeaders(req)) } // Add default headers for the peach http client. |