In gateway mode "continuation-token" will not contain "prefix" (#4911)

fixes #4900
This commit is contained in:
Krishna Srinivas
2017-09-13 17:27:19 -07:00
committed by Dee Koder
parent 1bb3a03099
commit 3e632a49ee
2 changed files with 21 additions and 1 deletions

View File

@@ -800,7 +800,7 @@ func (api gatewayAPIHandlers) ListObjectsV2Handler(w http.ResponseWriter, r *htt
// Validate the query params before beginning to serve the request.
// fetch-owner is not validated since it is a boolean
if s3Error := validateListObjectsArgs(prefix, marker, delimiter, maxKeys); s3Error != ErrNone {
if s3Error := validateGatewayListObjectsV2Args(prefix, marker, delimiter, maxKeys); s3Error != ErrNone {
writeErrorResponse(w, s3Error, r.URL)
return
}