docs:close the body of the response

This commit is contained in:
chenzilong 2020-09-09 19:09:08 +08:00
parent b860d8672d
commit 9f7736afc4

View File

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