more error types; RequestOptsBuilder error fixes
diff --git a/openstack/objectstorage/v1/accounts/requests.go b/openstack/objectstorage/v1/accounts/requests.go
index 57d6a6d..f50cf97 100644
--- a/openstack/objectstorage/v1/accounts/requests.go
+++ b/openstack/objectstorage/v1/accounts/requests.go
@@ -39,7 +39,7 @@
}
}
- resp, err := c.Request("HEAD", getURL(c), gophercloud.RequestOpts{
+ resp, err := c.Request("HEAD", getURL(c), &gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{204},
})
@@ -95,7 +95,7 @@
}
}
- resp, err := c.Request("POST", updateURL(c), gophercloud.RequestOpts{
+ resp, err := c.Request("POST", updateURL(c), &gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{201, 202, 204},
})