Skip to content

Commit e6406d2

Browse files
[HttpFoundation] Remove length limit on ETag
1 parent fea348c commit e6406d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/BinaryFileResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function setAutoLastModified()
141141
*/
142142
public function setAutoEtag()
143143
{
144-
$this->setEtag(substr(base64_encode(hash_file('sha256', $this->file->getPathname(), true)), 0, 32));
144+
$this->setEtag(base64_encode(hash_file('sha256', $this->file->getPathname(), true)));
145145

146146
return $this;
147147
}

0 commit comments

Comments
 (0)