forked from TrueCloudLab/frostfs-s3-gw
parent
6e91074b50
commit
e3c16a32dd
33 changed files with 332 additions and 263 deletions
|
@ -165,7 +165,8 @@ func parseListObjectArgs(reqInfo *api.ReqInfo) (*layer.ListObjectsParamsCommon,
|
|||
|
||||
func parseContinuationToken(queryValues url.Values) (string, error) {
|
||||
if val, ok := queryValues["continuation-token"]; ok {
|
||||
if err := oid.NewID().Parse(val[0]); err != nil {
|
||||
var objID oid.ID
|
||||
if err := objID.DecodeString(val[0]); err != nil {
|
||||
return "", errors.GetAPIError(errors.ErrIncorrectContinuationToken)
|
||||
}
|
||||
return val[0], nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue