For #6968: Use close instead of read to close the response stream.

This commit is contained in:
mcarare 2021-09-09 10:13:58 +03:00 committed by mergify[bot]
parent 3dc1c670d2
commit 70247e9456
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ object SearchStringValidator {
}
// 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()
response.body.close()
return if (response.isSuccess ||
isTestQueryParamNotFound(response.status)
) Result.Success else Result.CannotReach