aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-08-16 17:06:41 +0200
committerKim Alvefur <zash@zash.se>2024-08-16 17:06:41 +0200
commit9327c4342ac695754dd46c594dccd9518a5a38d3 (patch)
treefa7546acb88db8ec131d6ab2183fed347d869012 /net
parentffbf4e39d2bfb4ffa36d5d8252da4b8004458a45 (diff)
parent4f7c829b1e7e88e725ae5ccc5c5f45c92086d590 (diff)
downloadprosody-9327c4342ac695754dd46c594dccd9518a5a38d3.tar.gz
prosody-9327c4342ac695754dd46c594dccd9518a5a38d3.zip
Merge 0.12->trunk
Diffstat (limited to 'net')
-rw-r--r--net/http.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index bea1e905..35a92d57 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -317,6 +317,9 @@ local function request(self, u, ex, callback)
if ex and ex.use_dane ~= nil then
use_dane = ex.use_dane;
end
+ if not sslctx then
+ error("Attempt to make HTTPS request but no 'sslctx' provided in options");
+ end
end
if self.pool then