Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 0a77c18

Browse files
committed
Merge pull request #584 from jrperritt/583
remove errant AuthenticatedHeaders calls
2 parents adc2065 + 0c9032f commit 0a77c18

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

openstack/objectstorage/v1/accounts/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (opts GetOpts) ToAccountGetMap() (map[string]string, error) {
2525
// ExtractHeader method on the GetResult.
2626
func Get(c *gophercloud.ServiceClient, opts GetOptsBuilder) GetResult {
2727
var res GetResult
28-
h := c.AuthenticatedHeaders()
28+
h := make(map[string]string)
2929

3030
if opts != nil {
3131
headers, err := opts.ToAccountGetMap()

openstack/objectstorage/v1/containers/requests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (opts CreateOpts) ToContainerCreateMap() (map[string]string, error) {
9696
// Create is a function that creates a new container.
9797
func Create(c *gophercloud.ServiceClient, containerName string, opts CreateOptsBuilder) CreateResult {
9898
var res CreateResult
99-
h := c.AuthenticatedHeaders()
99+
h := make(map[string]string)
100100

101101
if opts != nil {
102102
headers, err := opts.ToContainerCreateMap()
@@ -164,7 +164,7 @@ func (opts UpdateOpts) ToContainerUpdateMap() (map[string]string, error) {
164164
// metadata.
165165
func Update(c *gophercloud.ServiceClient, containerName string, opts UpdateOptsBuilder) UpdateResult {
166166
var res UpdateResult
167-
h := c.AuthenticatedHeaders()
167+
h := make(map[string]string)
168168

169169
if opts != nil {
170170
headers, err := opts.ToContainerUpdateMap()

openstack/objectstorage/v1/objects/requests.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func Download(c *gophercloud.ServiceClient, containerName, objectName string, op
117117
var res DownloadResult
118118

119119
url := downloadURL(c, containerName, objectName)
120-
h := c.AuthenticatedHeaders()
120+
h := make(map[string]string)
121121

122122
if opts != nil {
123123
headers, query, err := opts.ToObjectDownloadParams()
@@ -282,7 +282,7 @@ func (opts CopyOpts) ToObjectCopyMap() (map[string]string, error) {
282282
// Copy is a function that copies one object to another.
283283
func Copy(c *gophercloud.ServiceClient, containerName, objectName string, opts CopyOptsBuilder) CopyResult {
284284
var res CopyResult
285-
h := c.AuthenticatedHeaders()
285+
h := make(map[string]string)
286286

287287
headers, err := opts.ToObjectCopyMap()
288288
if err != nil {
@@ -427,7 +427,7 @@ func (opts UpdateOpts) ToObjectUpdateMap() (map[string]string, error) {
427427
// Update is a function that creates, updates, or deletes an object's metadata.
428428
func Update(c *gophercloud.ServiceClient, containerName, objectName string, opts UpdateOptsBuilder) UpdateResult {
429429
var res UpdateResult
430-
h := c.AuthenticatedHeaders()
430+
h := make(map[string]string)
431431

432432
if opts != nil {
433433
headers, err := opts.ToObjectUpdateMap()

0 commit comments

Comments
 (0)