merge in 'DownloadResult' update
diff --git a/openstack/objectstorage/v1/objects/results.go b/openstack/objectstorage/v1/objects/results.go
index 7524c43..274d8a6 100644
--- a/openstack/objectstorage/v1/objects/results.go
+++ b/openstack/objectstorage/v1/objects/results.go
@@ -109,7 +109,7 @@
// DownloadResult is a *http.Response that is returned from a call to the Download function.
type DownloadResult struct {
headerResult
- Body io.Reader
+ Body io.ReadCloser
}
// ExtractContent is a function that takes a DownloadResult's io.Reader body
@@ -125,6 +125,7 @@
if err != nil {
return nil, err
}
+ dr.Body.Close()
return body, nil
}