Mercurial > prosody-hg
diff net/http.lua @ 13508:eac86b5fb04b
Merge 0.12->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 16 Aug 2024 17:06:41 +0200 |
| parents | 23f95714c386 a97c11584042 |
| children | 72018fe1c334 |
line wrap: on
line diff
--- a/net/http.lua Sun Aug 11 17:25:47 2024 +0200 +++ b/net/http.lua Fri Aug 16 17:06:41 2024 +0200 @@ -317,6 +317,9 @@ 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
