Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1180 OkHttp non-200 response not closed
Summary: OkHttp has added an error message in cases where the reponse body is not closed. Issue #1180 reported such a scenario which turned out to be related to the addition of an Interceptor to the OkHttpClient. This change ensures the body is closed even if the response was unsuccessful. Reviewed By: oprisnik Differential Revision: D3311688 fbshipit-source-id: 6ac8046be199ba27a3bb3b9c4f932fd684801f41
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
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