1
0
Fork 0

For #6968 Close response stream to allow use of caching

master
mcarare 2019-12-13 17:17:25 +02:00 committed by Jeff Boek
parent d2abac78eb
commit bc6b7725e9
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ object SearchStringValidator {
} catch (e: IOException) {
return Result.CannotReach
}
// read the response stream to ensure the body is closed correctly. workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1603114
response.body.string()
return if (response.isSuccess) Result.Success else Result.CannotReach
}