[HttpFoundation] Remove length limit on ETag

This commit is contained in:
Nicolas Grekas 2017-08-09 07:21:07 +02:00
parent fea348c7c4
commit e6406d21cd

View File

@ -141,7 +141,7 @@ class BinaryFileResponse extends Response
*/
public function setAutoEtag()
{
$this->setEtag(substr(base64_encode(hash_file('sha256', $this->file->getPathname(), true)), 0, 32));
$this->setEtag(base64_encode(hash_file('sha256', $this->file->getPathname(), true)));
return $this;
}