docs:close the body of the response (#2494)
This commit is contained in:
parent
b860d8672d
commit
1f232c7f47
@ -1255,6 +1255,7 @@ func main() {
|
||||
}
|
||||
|
||||
reader := response.Body
|
||||
defer reader.Close()
|
||||
contentLength := response.ContentLength
|
||||
contentType := response.Header.Get("Content-Type")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user