Commit 1541e7cc by DaSourcerer

Strip zero padding from ETag strings

parent c0e91e25
...@@ -188,6 +188,6 @@ class HttpCache extends ActionFilter ...@@ -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)), '=') . '"';
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment