mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
d5fb7b6754
commit
3c506b7809
6 changed files with 9 additions and 10 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue