plugins/mod_http_file_share.lua
changeset 13482 fe7557cf31a6
parent 13366 11e66ad894f0
equal deleted inserted replaced
13481:e8ac3ce3238e 13482:fe7557cf31a6
   450 	response.headers.x_xss_protection = "1; mode=block";
   450 	response.headers.x_xss_protection = "1; mode=block";
   451 
   451 
   452 	return response:send_file(handle);
   452 	return response:send_file(handle);
   453 end
   453 end
   454 
   454 
   455 if expiry >= 0 and not external_base_url then
   455 if expiry < math.huge and not external_base_url then
   456 	-- TODO HTTP DELETE to the external endpoint?
   456 	-- TODO HTTP DELETE to the external endpoint?
   457 	local array = require "prosody.util.array";
   457 	local array = require "prosody.util.array";
   458 	local async = require "prosody.util.async";
   458 	local async = require "prosody.util.async";
   459 	local ENOENT = require "prosody.util.pposix".ENOENT;
   459 	local ENOENT = require "prosody.util.pposix".ENOENT;
   460 
   460