s3api do not proxy directory requests

This commit is contained in:
Chris Lu committed 2018-07-23 01:15:59 -07:00
1 parent 7f32eb1e25
commit ebad3a44ab
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {
// DeleteBucket
bucket.Methods("DELETE").HandlerFunc(s3a.DeleteBucketHandler)
// GetObject
// GetObject, but directory listing is not supported
bucket.Methods("GET").Path("/{object:.+}").HandlerFunc(s3a.GetObjectHandler)
// ListObjectsV2
bucket.Methods("GET").HandlerFunc(s3a.ListObjectsV2Handler).Queries("list-type", "2")