docs:close the body of the response (#2494)

This commit is contained in:
yugu 2020-09-09 20:00:44 +08:00 committed by GitHub
parent b860d8672d
commit 1f232c7f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1255,6 +1255,7 @@ func main() {
}
reader := response.Body
defer reader.Close()
contentLength := response.ContentLength
contentType := response.Header.Get("Content-Type")