Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Fixed tokens.Validate with GET Method instaed of HEAD #644

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openstack/identity/v3/tokens/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
})
Expand Down