Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(storage): revise Reader to send XML preconditions (#4479)
This updates `Reader` to send precondition request headers to fit the XML API used for downloads. - adds a new function `setConditionsHeaders()` that parses `Conditions` and sets the corresponding precondition headers - revises `NewRangerReader` to call `setConditionsHeaders()` - if an object version is specified via `generation`, include `generation` as query string parameters - updates tests Fixes #4470
- Loading branch information
Showing
4 changed files
with
109 additions
and
68 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
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