Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
557: Consume buffer when creating AWSException r=iamed2 a=quinnj At least partially fixes #537. While investigating the depths of how AWS.jl and HTTP.jl interact, and working on several PRs to improve HTTP.jl, I noticed a pretty simple way to fix #537 in the most common case where the user doesn't pass in their own response_stream. Because the default response_stream is an `IOBuffer`, we can "consume" it's contents when an AWSException is thrown and thus when the request is retried, the buffer will be "clean" in that the exception response body has been extracted. Co-authored-by: Jacob Quinn <[email protected]>
- Loading branch information