summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-04-24 00:11:08 -0400
committersiddharth <s@ricketyspace.net>2022-04-24 00:11:08 -0400
commit5cd2e623c946081d86329dc758a2efee3ddee919 (patch)
tree6c27a26f9aa1f32b553665621512d1e334f048cb /http
parent9dd7a966b13a52caa9431bb2de25d4fd5ee1518c (diff)
http/client: update Get
Feed result of `buildHeaders` directly to `clienn.Do`
Diffstat (limited to 'http')
-rw-r--r--http/client/client.go4
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.