Manual follow-on tweaks to get the build green again.
diff --git a/openstack/objectstorage/v1/accounts/requests.go b/openstack/objectstorage/v1/accounts/requests.go
index 846ec0c..3e404c3 100644
--- a/openstack/objectstorage/v1/accounts/requests.go
+++ b/openstack/objectstorage/v1/accounts/requests.go
@@ -43,7 +43,7 @@
MoreHeaders: h,
OkCodes: []int{204},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}
@@ -80,7 +80,7 @@
// To extract the headers returned, call the Extract method on the UpdateResult.
func Update(c *gophercloud.ServiceClient, opts UpdateOptsBuilder) UpdateResult {
var res UpdateResult
- h := c.AuthenticatedHeaders()
+ h := make(map[string]string)
if opts != nil {
headers, err := opts.ToAccountUpdateMap()
@@ -97,7 +97,7 @@
MoreHeaders: h,
OkCodes: []int{204},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index a4faad1..8b5fed8 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -136,9 +136,9 @@
OkCodes: []int{200, 304},
})
- res.Body = resp.HttpResponse.Body
+ res.Body = resp.Body
res.Err = err
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
return res
}
@@ -279,7 +279,7 @@
MoreHeaders: h,
OkCodes: []int{201},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}
@@ -321,7 +321,7 @@
resp, err := c.Request("DELETE", url, gophercloud.RequestOpts{
OkCodes: []int{204},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}
@@ -365,7 +365,7 @@
resp, err := c.Request("HEAD", url, gophercloud.RequestOpts{
OkCodes: []int{200, 204},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}
@@ -422,7 +422,7 @@
MoreHeaders: h,
OkCodes: []int{202},
})
- res.Header = resp.HttpResponse.Header
+ res.Header = resp.Header
res.Err = err
return res
}