-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OkHttpClientHelper: Improve exception handling in downloadText()
Make sure that exceptions thrown when accessing the response body are handled by replacing map with mapCatching. At the time the response is available, the download of the body is not necessarily complete (for instance when using chunked transfer encoding); so there is a risk of potential I/O exceptions. Signed-off-by: Oliver Heger <[email protected]>
- Loading branch information
1 parent
fed5ead
commit 5af9ba1
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters