Skip to content

Commit

Permalink
clearstatcache for filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Sep 14, 2022
1 parent 4a5769c commit 7265c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Protocols/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public static function encode($response, TcpConnection $connection)
$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(array(
Expand Down

0 comments on commit 7265c08

Please sign in to comment.