openstack/ :knife: perigee
diff --git a/openstack/cdn/v1/services/requests.go b/openstack/cdn/v1/services/requests.go
index e65ad02..73a9436 100644
--- a/openstack/cdn/v1/services/requests.go
+++ b/openstack/cdn/v1/services/requests.go
@@ -4,7 +4,6 @@
"fmt"
"strings"
- "github.com/racker/perigee"
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
@@ -178,10 +177,9 @@
}
// Send request to API
- resp, err := perigee.Request("POST", createURL(c), perigee.Options{
- MoreHeaders: c.AuthenticatedHeaders(),
- ReqBody: &reqBody,
- OkCodes: []int{202},
+ resp, err := c.Request("POST", createURL(c), gophercloud.RequestOpts{
+ JSONBody: &reqBody,
+ OkCodes: []int{202},
})
res.Header = resp.HttpResponse.Header
res.Err = err
@@ -358,10 +356,9 @@
reqBody[i] = patch.ToCDNServiceUpdateMap()
}
- resp, err := perigee.Request("PATCH", url, perigee.Options{
- MoreHeaders: c.AuthenticatedHeaders(),
- ReqBody: &reqBody,
- OkCodes: []int{202},
+ resp, err := c.Request("PATCH", url, gophercloud.RequestOpts{
+ JSONBody: &reqBody,
+ OkCodes: []int{202},
})
var result UpdateResult
result.Header = resp.HttpResponse.Header