Remove the `.Provider.` bit.
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index 7d598b8..1b6cb5c 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -109,7 +109,7 @@
var res DownloadResult
url := downloadURL(c, containerName, objectName)
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
if opts != nil {
headers, query, err := opts.ToObjectDownloadParams()
@@ -187,7 +187,7 @@
var res CreateResult
url := createURL(c, containerName, objectName)
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
if opts != nil {
headers, query, err := opts.ToObjectCreateParams()
@@ -250,7 +250,7 @@
// Copy is a function that copies one object to another.
func Copy(c *gophercloud.ServiceClient, containerName, objectName string, opts CopyOptsBuilder) CopyResult {
var res CopyResult
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
headers, err := opts.ToObjectCopyMap()
if err != nil {
@@ -306,7 +306,7 @@
}
resp, err := perigee.Request("DELETE", url, perigee.Options{
- MoreHeaders: c.Provider.AuthenticatedHeaders(),
+ MoreHeaders: c.AuthenticatedHeaders(),
OkCodes: []int{204},
})
res.Header = resp.HttpResponse.Header
@@ -351,7 +351,7 @@
}
resp, err := perigee.Request("HEAD", url, perigee.Options{
- MoreHeaders: c.Provider.AuthenticatedHeaders(),
+ MoreHeaders: c.AuthenticatedHeaders(),
OkCodes: []int{200, 204},
})
res.Header = resp.HttpResponse.Header
@@ -392,7 +392,7 @@
// Update is a function that creates, updates, or deletes an object's metadata.
func Update(c *gophercloud.ServiceClient, containerName, objectName string, opts UpdateOptsBuilder) UpdateResult {
var res UpdateResult
- h := c.Provider.AuthenticatedHeaders()
+ h := c.AuthenticatedHeaders()
if opts != nil {
headers, err := opts.ToObjectUpdateMap()