mirror of
https://github.com/versity/versitygw.git
synced 2025-12-23 05:05:16 +00:00
fix: fixes the range parsing for GetObject. Adds range query support for HeadObject.
Fixes #1258 Fixes #1257 Closes #1244 Adds range queries support for `HeadObject`. Fixes the range parsing logic for `GetObject`, which is used for `HeadObject` as well. Both actions follow the same rules for range parsing. Fixes the error message returned by `GetObject`.
This commit is contained in:
@@ -523,7 +523,7 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
||||
},
|
||||
ErrInvalidRange: {
|
||||
Code: "InvalidRange",
|
||||
Description: "The requested range is not valid for the request. Try another range.",
|
||||
Description: "The requested range is not satisfiable",
|
||||
HTTPStatusCode: http.StatusRequestedRangeNotSatisfiable,
|
||||
},
|
||||
ErrInvalidURI: {
|
||||
|
||||
Reference in New Issue
Block a user