mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-04 16:15:45 +00:00
fix: close body correctly
This commit is contained in:
@@ -21,6 +21,8 @@ func GetGenericUser(client *http.Client, url string) (constants.Claims, error) {
|
||||
return user, err
|
||||
}
|
||||
|
||||
defer res.Body.Close()
|
||||
|
||||
log.Debug().Msg("Got response from generic provider")
|
||||
|
||||
// Read the body of the response
|
||||
|
||||
Reference in New Issue
Block a user