Skip to content

Commit 3f56677

Browse files
committed
allow empty tag values
1 parent f241d4e commit 3f56677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/s3middleware/tagging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const _validator = {
4545
validateTagObjectStructure: (tag: BucketTag) => tag
4646
&& Object.keys(tag).length === 2
4747
&& typeof tag.Key === 'string' && typeof tag.Value === 'string'
48-
&& tag.Key.length >= 1 && tag.Value.length >= 1,
48+
&& tag.Key.length >= 1,
4949

5050
validateXMLStructure: (result: any) =>
5151
result && Object.keys(result).length === 1 &&

0 commit comments

Comments
 (0)