Refactor OpenStack services to use default OkCodes
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index 30ea94c..b69b8dd 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -211,7 +211,6 @@
ropts := gophercloud.RequestOpts{
RawBody: content,
MoreHeaders: h,
- OkCodes: []int{201, 202},
}
resp, err := c.Request("PUT", url, ropts)
@@ -310,9 +309,7 @@
url += query
}
- resp, err := c.Request("DELETE", url, gophercloud.RequestOpts{
- OkCodes: []int{204},
- })
+ resp, err := c.Request("DELETE", url, gophercloud.RequestOpts{})
res.Header = resp.Header
res.Err = err
return res
@@ -412,7 +409,6 @@
url := updateURL(c, containerName, objectName)
resp, err := c.Request("POST", url, gophercloud.RequestOpts{
MoreHeaders: h,
- OkCodes: []int{202},
})
res.Header = resp.Header
res.Err = err