Remove the `.Provider.` bit.
diff --git a/openstack/objectstorage/v1/containers/requests.go b/openstack/objectstorage/v1/containers/requests.go
index 89fa014..3fae4d9 100644
--- a/openstack/objectstorage/v1/containers/requests.go
+++ b/openstack/objectstorage/v1/containers/requests.go
@@ -97,7 +97,7 @@
// Create is a function that creates a new container.
func Create(c *gophercloud.ServiceClient, containerName string, opts CreateOptsBuilder) CreateResult {
var res CreateResult
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
if opts != nil {
headers, err := opts.ToContainerCreateMap()
@@ -124,7 +124,7 @@
func Delete(c *gophercloud.ServiceClient, containerName string) DeleteResult {
var res DeleteResult
resp, err := perigee.Request("DELETE", deleteURL(c, containerName), perigee.Options{
- MoreHeaders: c.Provider.AuthenticatedHeaders(),
+ MoreHeaders: c.AuthenticatedHeaders(),
OkCodes: []int{202, 204},
})
res.Header = resp.HttpResponse.Header
@@ -168,7 +168,7 @@
// metadata.
func Update(c *gophercloud.ServiceClient, containerName string, opts UpdateOptsBuilder) UpdateResult {
var res UpdateResult
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
if opts != nil {
headers, err := opts.ToContainerUpdateMap()
@@ -197,7 +197,7 @@
func Get(c *gophercloud.ServiceClient, containerName string) GetResult {
var res GetResult
resp, err := perigee.Request("HEAD", getURL(c, containerName), perigee.Options{
- MoreHeaders: c.Provider.AuthenticatedHeaders(),
+ MoreHeaders: c.AuthenticatedHeaders(),
OkCodes: []int{200, 204},
})
res.Header = resp.HttpResponse.Header