mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
fix: close resp body
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
9897959731
commit
dd2b3a04a4
|
|
@ -83,6 +83,7 @@ func CreateSession(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
// Error if the status isn't OK
|
// Error if the status isn't OK
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue