Changeset

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
parents 13785:d7e54a2475cc
children 13787:3e72cdca6beb 13788:36ac4fbab2f8
files plugins/mod_http_file_share.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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