commit | f9fd95bf22ebf60fcc1051a272d8b3b2ed58b0ff | [log] [tgz] |
---|---|---|
author | Jon Perritt <jrperritt@gmail.com> | Mon Oct 27 13:17:23 2014 -0500 |
committer | Jon Perritt <jrperritt@gmail.com> | Mon Oct 27 13:17:23 2014 -0500 |
tree | 7dbc48b89d9ef383936a56c9b223fe57e76d9674 | |
parent | 794777cbff18446eec0c4a899c458fa037c23d76 [diff] [blame] |
defer closing body
diff --git a/openstack/objectstorage/v1/objects/requests_test.go b/openstack/objectstorage/v1/objects/requests_test.go index 3935e1b..c3c28a7 100644 --- a/openstack/objectstorage/v1/objects/requests_test.go +++ b/openstack/objectstorage/v1/objects/requests_test.go
@@ -16,6 +16,7 @@ HandleDownloadObjectSuccessfully(t) response := Download(fake.ServiceClient(), "testContainer", "testObject", nil) + defer response.Body.Close() // Check reader buf := bytes.NewBuffer(make([]byte, 0))