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

Commit

Permalink
Close oauth calls
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex authored Jun 13, 2017
1 parent 12a05cd commit 5074e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions httphandlers/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func validateToken(accessToken string, gin *gin.Context) {
request.Header.Add("Content-Type", "application/x-www-form-urlencoded")
request.Header.Add("Content-Length", strconv.Itoa(len(data.Encode())))
response, err := client.Do(request)
defer response.Body.Close()
if err != nil {
logging.Error("Error talking to auth server", err)
errMsg := make(map[string]string)
Expand Down

0 comments on commit 5074e03

Please sign in to comment.