For #6968 Close response stream to allow use of caching
This commit is contained in:
parent
d2abac78eb
commit
bc6b7725e9
|
@ -21,6 +21,9 @@ object SearchStringValidator {
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
return Result.CannotReach
|
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
|
return if (response.isSuccess) Result.Success else Result.CannotReach
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user