Explorar el Código

Merge pull request #648 from mix-php/master

fix:last-modified:304 failure
walkor hace 4 años
padre
commit
fa5a5f7c13
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Protocols/Http/Response.php

+ 1 - 1
Protocols/Http/Response.php

@@ -375,7 +375,7 @@ class Response
 
         if (!isset($headers['Last-Modified'])) {
             if ($mtime = \filemtime($file)) {
-                $head .= 'Last-Modified: '.\date('D, d M Y H:i:s', $mtime) . ' ' . \date_default_timezone_get() ."\r\n";
+                $head .= 'Last-Modified: '. \gmdate('D, d M Y H:i:s', $mtime) . ' GMT' . "\r\n";
             }
         }