From 6584c7ea2b24246f7aff63e9aabca2a0693b93f3 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 25 Feb 2019 03:50:28 +0100 Subject: [PATCH] s3: Encode StartAfter when encoding type is passed (#7281) In ObjectList V2, StartAfter needs to be encoded when encoding-type is specified. --- cmd/api-response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/api-response.go b/cmd/api-response.go index 55b979de4..0be2d8352 100644 --- a/cmd/api-response.go +++ b/cmd/api-response.go @@ -414,7 +414,7 @@ func generateListObjectsV2Response(bucket, prefix, token, nextToken, startAfter, data.Contents = contents data.EncodingType = encodingType - data.StartAfter = startAfter + data.StartAfter = s3EncodeName(startAfter, encodingType) data.Delimiter = s3EncodeName(delimiter, encodingType) data.Prefix = s3EncodeName(prefix, encodingType) data.MaxKeys = maxKeys