0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-13 09:58:59 +02:00
This commit is contained in:
guangwu 2024-05-01 08:44:22 +02:00 committed by GitHub
commit 66f92dc14c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {