forked from square/okhttp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not open GZIPInputStream on a closed stream. Issue 358.
- Loading branch information
Showing
2 changed files
with
28 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
it is true that 304 shouldn't have a body, but also any response to a HEAD, DELETE, and some other codes also do not. I wonder if there's a way to address this without special casing one of the many reasons that could result in an empty body..