Changeset

13508:eac86b5fb04b

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 16 Aug 2024 17:06:41 +0200
parents 13507:4fb6a3eb9c29 (current diff) 13505:a97c11584042 (diff)
children 13509:f14066ee3239
files net/http.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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