fix forgotten close body
This commit is contained in:
parent
8e69e2423f
commit
74e28788e6
@ -85,7 +85,6 @@ linters:
|
||||
- whitespace
|
||||
- gofumpt
|
||||
- godot
|
||||
# - gofmt
|
||||
- gocritic
|
||||
- gocognit
|
||||
- deadcode
|
||||
|
@ -220,6 +220,7 @@ func (r *Request) sendHTTPRequest(method, urlstr string, host string, headers ma
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
ret := &Response{Code: resp.StatusCode, Header: resp.Header}
|
||||
buf, err := io.ReadAll(resp.Body)
|
||||
|
Loading…
Reference in New Issue
Block a user