Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 35b9117a authored by Tobias Kaminsky's avatar Tobias Kaminsky Committed by GitHub
Browse files

Merge pull request #378 from nextcloud/fixBodyClose

Close body only if body exists
parents 903d50f8 f439a20d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ abstract class OkHttpMethodBase(var uri: String,
    }

    fun releaseConnection() {
        response.close()
        response.body()?.close()
    }

    fun getStatusCode(): Int {