mirror of
https://github.com/distribution/distribution.git
synced 2025-09-10 11:19:58 +00:00
Merge pull request #1172 from aaronlehmann/swift-empty-delete-request
Fix empty delete requests with Swift fs driver
This commit is contained in:
@@ -587,7 +587,7 @@ func (d *driver) Delete(ctx context.Context, path string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.BulkDeleteSupport {
|
if len(objects) > 0 && d.BulkDeleteSupport {
|
||||||
filenames := make([]string, len(objects))
|
filenames := make([]string, len(objects))
|
||||||
for i, obj := range objects {
|
for i, obj := range objects {
|
||||||
filenames[i] = obj.Name
|
filenames[i] = obj.Name
|
||||||
|
Reference in New Issue
Block a user