Skip to content

Commit a0adbb7

Browse files
feat(storage): Set CRC32C as the default checksum option (#9107)
fix: Set CRC32C as the default checksum option Co-authored-by: Priti Chattopadhyay <cpriti@google.com>
1 parent 5f8d454 commit a0adbb7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Storage/src/Connection/Rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ private function resolveUploadOptions(array $args)
479479
$args += [
480480
'bucket' => null,
481481
'name' => null,
482-
'validate' => true,
482+
'validate' => 'crc32',
483483
'resumable' => null,
484484
'streamable' => null,
485485
'predefinedAcl' => null,

Storage/tests/Unit/Connection/RestTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,16 @@ public function validationMethod()
646646
true,
647647
true,
648648
false
649+
],[
650+
['validate' => null],
651+
true,
652+
true,
653+
'crc32'
654+
], [
655+
['validate' => ''],
656+
true,
657+
true,
658+
'crc32'
649659
]
650660
];
651661
}

0 commit comments

Comments
 (0)