s3 fix get fake dir object key (#4390)
This commit is contained in:
committed by
GitHub
parent
d1ce89950e
commit
130bc3e668
@@ -9,4 +9,5 @@ const (
|
||||
|
||||
SeaweedStorageDestinationHeader = "x-seaweedfs-destination"
|
||||
MultipartUploadsFolder = ".uploads"
|
||||
FolderMimeType = "httpd/unix-directory"
|
||||
)
|
||||
|
||||
@@ -99,7 +99,7 @@ func (s3a *S3ApiServer) PutObjectHandler(w http.ResponseWriter, r *http.Request)
|
||||
s3a.option.BucketsPath, bucket+strings.TrimSuffix(object, "/"),
|
||||
func(entry *filer_pb.Entry) {
|
||||
if objectContentType == "" {
|
||||
objectContentType = "httpd/unix-directory"
|
||||
objectContentType = s3_constants.FolderMimeType
|
||||
}
|
||||
entry.Attributes.Mime = objectContentType
|
||||
}); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user