More thoroughly ensures the body of a response is closed
Does a final read of the body to empty it out, just in case (this wasn't being done for some bodies with no expected content)
Motivation
There have been some reports of hanging in the Terraform provider and I decided to go over our HTTP client use with a fine-tooth comb. Turns out there are definitely some places where this could happen.
Summary
Makes the following changes
Motivation
There have been some reports of hanging in the Terraform provider and I decided to go over our HTTP client use with a fine-tooth comb. Turns out there are definitely some places where this could happen.