UPSTREAM: gophercloud/gophercloud: 383: support HTTP Multiple Choices in pagination
@@ -55,6 +55,6 @@ func PageResultFromParsed(resp *http.Response, body interface{}) PageResult {
func Request(client *gophercloud.ServiceClient, headers map[string]string, url string) (*http.Response, error) {
return client.Get(url, nil, &gophercloud.RequestOpts{
MoreHeaders: headers,
- OkCodes: []int{200, 204},
+ OkCodes: []int{200, 204, 300},
})
}
