From b4b5fcea470548293a127139fd95e3c91abb8a32 Mon Sep 17 00:00:00 2001 From: ChrisRen Date: Sun, 30 Sep 2018 18:39:48 +0800 Subject: [PATCH] Fixed tokens.Validate with GET Method instaed of HEAD --- openstack/identity/v3/tokens/requests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack/identity/v3/tokens/requests.go b/openstack/identity/v3/tokens/requests.go index b32e694d..0fcccb90 100644 --- a/openstack/identity/v3/tokens/requests.go +++ b/openstack/identity/v3/tokens/requests.go @@ -264,7 +264,7 @@ func Get(c *gophercloud.ServiceClient, token string) GetResult { // Validate determines if a specified token is valid or not. func Validate(c *gophercloud.ServiceClient, token string) (bool, error) { - response, err := c.Request("HEAD", tokenURL(c), gophercloud.RequestOpts{ + response, err := c.Request("GET", tokenURL(c), gophercloud.RequestOpts{ MoreHeaders: subjectTokenHeaders(c, token), OkCodes: []int{204, 404}, })