For #6968: Use close instead of read to close the response stream.
This commit is contained in:
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…
Reference in New Issue