Skip to content

Commit 186c4e6

Browse files
committed
Revert disableMD5 value comes from the bucket config by default
1 parent 3712d24 commit 186c4e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/gridfs-stream-wrapper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
/**
44
* For applications that need to interact with GridFS using only a filename string,
55
* a bucket can be registered with an alias. Files can then be accessed using the
6-
* following pattern:
7-
* gridfs://<bucket-alias>/<filename>
6+
* following pattern: gridfs://<bucket-alias>/<filename>
87
*/
98

109
declare(strict_types=1);

src/GridFS/Bucket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ private function resolveStreamContext(string $path, string $mode, array $context
821821
'filename' => $filename,
822822
'options' => $context + [
823823
'chunkSizeBytes' => $this->chunkSizeBytes,
824-
'disableMD5' => true,
824+
'disableMD5' => $this->disableMD5,
825825
],
826826
];
827827
}

0 commit comments

Comments
 (0)