Added cache-control header to objectstore
diff --git a/openstack/objectstorage/v1/objects/requests_test.go b/openstack/objectstorage/v1/objects/requests_test.go
index f7d6822..3a9d098 100644
--- a/openstack/objectstorage/v1/objects/requests_test.go
+++ b/openstack/objectstorage/v1/objects/requests_test.go
@@ -96,6 +96,19 @@
th.AssertNoErr(t, res.Err)
}
+func TestCreateObjectWithCacheControl(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ content := "All mimsy were the borogoves"
+
+ HandleCreateTextWithCacheControlSuccessfully(t, content)
+
+ options := &CreateOpts{CacheControl: `max-age="3600", public`}
+ res := Create(fake.ServiceClient(), "testContainer", "testObject", strings.NewReader(content), options)
+ th.AssertNoErr(t, res.Err)
+}
+
func TestCreateObjectWithoutContentType(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()