Software /
code /
prosody
File
util/xpcall.lua @ 10840:a83bfb266b15
mod_http: Add documentation to the non-obvious logic of get_ip_from_request
Because docs are good.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Thu, 14 May 2020 14:59:59 +0200 |
parent | 9561:cfc7b2f7251e |
child | 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"util.compat".xpcall; end return { xpcall = xpcall; };