map range-error to the right http error code #157
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#157
Loading…
Reference in New Issue
No description provided.
Delete Branch "trinity-1686a/garage:range-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix #140
There are other code paths that should reeturn 416 instead of 400:
LGTM
@ -71,1 +70,3 @@
.body(body)?;
.header("Content-Type", "application/xml");
if let Some(header_map) = http_error_builder.headers_mut() {
It's kind of confusing that there is an
if
but as I understand the codepath is always taken. Using.unwrap()
on.headers_mut()
would have seemed more logical.