Browse Source

[HttpKernel] fixed Request::getETags()

Fabien Potencier 15 năm trước cách đây
mục cha
commit
d14daf9275
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Symfony/Components/HttpKernel/Request.php

+ 1 - 1
src/Symfony/Components/HttpKernel/Request.php

@@ -462,7 +462,7 @@ class Request
 
     public function getETags()
     {
-        return preg_split('/\s*,\s*/', $this->headers->get('if_none_match'));
+        return preg_split('/\s*,\s*/', $this->headers->get('if_none_match'), null, PREG_SPLIT_NO_EMPTY);
     }
 
     public function isNoCache()