mirror of
https://github.com/matrix-org/dendrite
synced 2024-06-01 03:59:03 +02:00
fix: close resp body
This commit is contained in:
parent
14a6c10097
commit
3f4106417b
|
@ -83,6 +83,7 @@ func CreateSession(
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
// Error if the status isn't OK
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
|
|
Loading…
Reference in a new issue