Please sign in to comment.
Improve zero-length content handling in HttpClient object.
If content was zero-length then the IO object was not created. This put the burden on the caller to test that the IO object existed before checking eof. Instead, create an IO object even if it will immediately return eof. This has little cost and makes the calling code simpler. Also add an explicit test for zero-length files in S3 and a few assertions.
- Loading branch information...
Showing with 34 additions and 19 deletions.