feat: add rp.RevokeToken
This commit is contained in:
parent
ca938b229a
commit
e1fc781484
1 changed files with 1 additions and 1 deletions
|
@ -99,10 +99,10 @@ func CallRevokeEndpoint(request interface{}, authFn interface{}, caller RevokeCa
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
// According to RFC7009 in section 2.2:
|
||||
// "The content of the response body is ignored by the client as all
|
||||
// necessary information is conveyed in the response code."
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != 200 {
|
||||
// TODO: switch to io.ReadAll when go1.15 support is retired
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue