comparison plugins/mod_http.lua @ 14088:d08f18c35d27 13.0

mod_http: "Handle" streaming requests to avoid invoking redirect handler
author Kim Alvefur <zash@zash.se>
date Fri, 20 Feb 2026 15:45:54 +0100
parents a4b58ea5bf7b
children
comparison
equal deleted inserted replaced
14086:79a6598cef0b 14088:d08f18c35d27
262 -- COMPAT Modules not compatible with streaming uploads behave as before. 262 -- COMPAT Modules not compatible with streaming uploads behave as before.
263 local _handler = handler; 263 local _handler = handler;
264 function handler(event) -- luacheck: ignore 432/event 264 function handler(event) -- luacheck: ignore 432/event
265 if event.request.body ~= false then 265 if event.request.body ~= false then
266 return _handler(event); 266 return _handler(event);
267 else
268 return true;
267 end 269 end
268 end 270 end
269 end 271 end
270 if not app_handlers[event_name] then 272 if not app_handlers[event_name] then
271 app_handlers[event_name] = { 273 app_handlers[event_name] = {