[fenix] For https://github.com/mozilla-mobile/fenix/issues/6968: Use close instead of read to close the response stream.

pull/600/head
mcarare 3 years ago committed by mergify[bot]
parent a347c11c6f
commit 1d78c8b1a7

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