Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -86,11 +86,11 @@ func Do(endpoint string, modifiers ...func(*Options)) (*http.Response, io.ReadCl |
| 86 | 86 |
if err != nil {
|
| 87 | 87 |
return nil, nil, err |
| 88 | 88 |
} |
| 89 |
- client, err := newHTTPClient(opts.host) |
|
| 89 |
+ httpClient, err := newHTTPClient(opts.host) |
|
| 90 | 90 |
if err != nil {
|
| 91 | 91 |
return nil, nil, err |
| 92 | 92 |
} |
| 93 |
- resp, err := client.Do(req) |
|
| 93 |
+ resp, err := httpClient.Do(req) |
|
| 94 | 94 |
var body io.ReadCloser |
| 95 | 95 |
if resp != nil {
|
| 96 | 96 |
body = ioutils.NewReadCloserWrapper(resp.Body, func() error {
|