For now we still attempt to support systems without lua-cqueues,
e.g. Ubuntu 16.04.
lua-http depends on lua-cqueues so the test for availability of lua-http
at the beginning of kr_https_fetch() should cover lua-cqueues as well.
-- SPDX-License-Identifier: GPL-3.0-or-later
-local cqerrno = require('cqueues.errno')
local ffi = require('ffi')
local kluautil = {}
if not http_ok or not httptls_ok or not openssl_ok then
return nil, 'error: lua-http and luaossl libraries are missing (but required)'
end
+ local cqerrno = require('cqueues.errno')
assert(string.match(url, '^https://'))