Sfoglia il codice sorgente

Merge pull request #648 from mix-php/master

fix:last-modified:304 failure
walkor 4 anni fa
parent
commit
fa5a5f7c13
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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";
             }
         }