From faed304d55dfc2bb26730b78e3d54fea23573b5c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 23 Mar 2025 12:36:47 +0100 Subject: mod_http_file_share: Explicitly reject all unsupported ranges Fail fast. Otherwise it sends the whole file. --- plugins/mod_http_file_share.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index ab9940b9..7b9aff75 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -442,6 +442,9 @@ function handle_download(event, path) -- GET /uploads/:slot+filename handle:close(); return 416; end + else + handle:close(); + return 416; end end -- cgit v1.2.3