forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s3_client: Check if response contains error
S3 can reply with error even if it's replying using status 200. Most of our parsing is done independent of status code (we're trying to check error fields every time). But in case of delete objects reply we're not trying to parse error fields if the status is 200. This commit fixes this and before any attempt at parsing the response is done we're checking if the 'Error.Code' field is present. (cherry picked from commit df299db)
- Loading branch information
1 parent
061011e
commit 5f08cd4
Showing
1 changed file
with
24 additions
and
3 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