make object's 'Content' type more generic (from *bytes.Reader to io.Reader)
diff --git a/openstack/storage/v1/objects/objects.go b/openstack/storage/v1/objects/objects.go
index ab390fa..a4fbd8c 100644
--- a/openstack/storage/v1/objects/objects.go
+++ b/openstack/storage/v1/objects/objects.go
@@ -1,8 +1,8 @@
package objects
import (
- "bytes"
"encoding/json"
+ "io"
"io/ioutil"
"strings"
)
@@ -29,7 +29,7 @@
type CreateOpts struct {
Container string
Name string
- Content *bytes.Buffer
+ Content io.Reader
Metadata map[string]string
Headers map[string]string
Params map[string]string