mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +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)
|
||||
{
|
||||
return '"' . base64_encode(sha1($seed, true)) . '"';
|
||||
return '"' . rtrim(base64_encode(sha1($seed, true)), '=') . '"';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user