misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2021-04-09 00:14:52 +02:00
parent d5fb7b6754
commit 3c506b7809
6 changed files with 9 additions and 10 deletions

View file

@ -54,10 +54,7 @@ func (c httpPackage) Request(method string, uri string, headers map[string]strin
req.Header.Add(name, value)
}
transport := &http.Transport{}
client := &http.Client{Transport: transport}
resp, err := client.Do(req)
resp, err := http.DefaultClient.Do(req)
if err != nil {
return httpResponse{Error: err}
}