mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-04 14:46:19 +08:00
Strip zero padding from ETag strings
This commit is contained in:
@ -188,6 +188,6 @@ class HttpCache extends ActionFilter
|
|||||||
*/
|
*/
|
||||||
protected function generateEtag($seed)
|
protected function generateEtag($seed)
|
||||||
{
|
{
|
||||||
return '"' . base64_encode(sha1($seed, true)) . '"';
|
return '"' . rtrim(base64_encode(sha1($seed, true)), '=') . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user