Diff

plugins/mod_http_file_share.lua @ 13786:284b100acda1 13.0

mod_http_file_share: Explicitly reject all unsupported ranges Fail fast. Otherwise it sends the whole file.
author Kim Alvefur <zash@zash.se>
date Sun, 23 Mar 2025 12:36:47 +0100
parent 13785:d7e54a2475cc
child 13854:0b01f40df0f9
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua	Sun Mar 23 12:21:19 2025 +0100
+++ b/plugins/mod_http_file_share.lua	Sun Mar 23 12:36:47 2025 +0100
@@ -442,6 +442,9 @@
 				handle:close();
 				return 416;
 			end
+		else
+			handle:close();
+			return 416;
 		end
 	end