Explorar o código

fix:last-modified:304 failure

liujian %!s(int64=4) %!d(string=hai) anos
pai
achega
79bab10f84
Modificáronse 1 ficheiros con 1 adicións e 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";
             }
         }