File

util/xpcall.lua @ 13749:08c2b7accd94 13.0

mod_bosh,mod_websocket: Don't load mod_http_altconnect in global context It blocked loading on VirtualHosts since it was already loaded globally Thanks eTaurus
author Kim Alvefur <zash@zash.se>
date Sat, 22 Feb 2025 21:45:34 +0100
parent 12975:d10957394a3c
line wrap: on
line source

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"prosody.util.compat".xpcall;
end

return {
	xpcall = xpcall;
};