Explorar el Código

[HttpKernel] fixed Request::getETags()

Fabien Potencier hace 15 años
padre
commit
d14daf9275
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()