Explorar o código

clearstatcache for filesize

walkor %!s(int64=3) %!d(string=hai) anos
pai
achega
27dd1268d0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Protocols/Http.php

+ 1 - 0
src/Protocols/Http.php

@@ -205,6 +205,7 @@ class Http
             $file = $response->file['file'];
             $offset = $response->file['offset'];
             $length = $response->file['length'];
+            \clearstatcache();
             $file_size = (int)\filesize($file);
             $body_len = $length > 0 ? $length : $file_size - $offset;
             $response->withHeaders([