mirror of
https://github.com/alist-org/gofakes3.git
synced 2025-12-24 12:58:04 +08:00
@@ -257,7 +257,7 @@ func (g *GoFakeS3) listBucket(bucketName string, w http.ResponseWriter, r *http.
|
||||
Contents: objects.Contents,
|
||||
IsTruncated: objects.IsTruncated,
|
||||
Delimiter: prefix.Delimiter,
|
||||
Prefix: prefix.Prefix,
|
||||
Prefix: URLEncode(prefix.Prefix),
|
||||
MaxKeys: page.MaxKeys,
|
||||
}
|
||||
|
||||
@@ -280,6 +280,7 @@ func (g *GoFakeS3) listBucket(bucketName string, w http.ResponseWriter, r *http.
|
||||
KeyCount: int64(len(objects.CommonPrefixes) + len(objects.Contents)),
|
||||
StartAfter: q.Get("start-after"),
|
||||
ContinuationToken: q.Get("continuation-token"),
|
||||
EncodingType: "url",
|
||||
}
|
||||
if objects.NextMarker != "" {
|
||||
// We are just cheating with these continuation tokens; they're just the NextMarker
|
||||
|
||||
@@ -248,7 +248,8 @@ type ListBucketResultV2 struct {
|
||||
NextContinuationToken string `xml:"NextContinuationToken,omitempty"`
|
||||
|
||||
// If StartAfter was sent with the request, it is included in the response.
|
||||
StartAfter string `xml:"StartAfter,omitempty"`
|
||||
StartAfter string `xml:"StartAfter,omitempty"`
|
||||
EncodingType string `xml:"EncodingType,omitempty"`
|
||||
}
|
||||
|
||||
type DeleteMarker struct {
|
||||
|
||||
Reference in New Issue
Block a user