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

upstream-sync
mcarare 3 years ago committed by mergify[bot]
parent 3dc1c670d2
commit 70247e9456

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

Loading…
Cancel
Save