Software /
code /
prosody
File
util/xpcall.lua @ 13320:23f95714c386
net.http: Set Connection header based on connection pool usage
Connection: keep-alive is implicit in HTTP/1.1 but explicit > implicit
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Nov 2023 23:48:45 +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; };