Skip to content

Commit

Permalink
Don't count range download in download limit
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan authored and AndyScherzinger committed Aug 1, 2024
1 parent 13921ca commit 9dcf900
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/files_sharing/lib/Controller/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ public function downloadShare($token, $files = null, $path = '', $downloadStartS
}

$this->emitAccessShareHook($share);
$this->emitShareAccessEvent($share, self::SHARE_DOWNLOAD);
if (!isset($_SERVER['HTTP_RANGE'])) {
$this->emitShareAccessEvent($share, self::SHARE_DOWNLOAD);
}

$server_params = [ 'head' => $this->request->getMethod() === 'HEAD' ];

Expand Down

0 comments on commit 9dcf900

Please sign in to comment.