Skip to content

Commit

Permalink
add remark regarding connection closing
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Mar 26, 2023
1 parent 817a208 commit c45c24e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class HttpServiceClientDefault @Inject constructor(
}
}

// Do not disconnect the connection here as it will be potentially reused

return InputStreamReader(inputStream, "UTF-8").use { it.readText() }
}
}

0 comments on commit c45c24e

Please sign in to comment.