diff options
author | Kim Alvefur <zash@zash.se> | 2024-08-16 17:06:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-08-16 17:06:41 +0200 |
commit | 9327c4342ac695754dd46c594dccd9518a5a38d3 (patch) | |
tree | fa7546acb88db8ec131d6ab2183fed347d869012 | |
parent | ffbf4e39d2bfb4ffa36d5d8252da4b8004458a45 (diff) | |
parent | 4f7c829b1e7e88e725ae5ccc5c5f45c92086d590 (diff) | |
download | prosody-9327c4342ac695754dd46c594dccd9518a5a38d3.tar.gz prosody-9327c4342ac695754dd46c594dccd9518a5a38d3.zip |
Merge 0.12->trunk
-rw-r--r-- | net/http.lua | 3 |
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 |