Skip to content

Commit 4dd6d43

Browse files
committed
Update test
1 parent 9764a50 commit 4dd6d43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_easy.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,8 @@ end
10271027

10281028
local _ENV = TEST_CASE'unset_callback_ctx' if ENABLE then
10291029

1030+
local HSTS = curl.version_info().features.HSTS
1031+
10301032
local c
10311033

10321034
function setup()
@@ -1082,7 +1084,7 @@ function test_fnmatch() test_cb('fnmatch_function') end
10821084
function test_chunk_bgn() test_cb('chunk_bgn_function') end
10831085
function test_chunk_end() test_cb('chunk_end_function') end
10841086

1085-
if curl.OPT_HSTSREADFUNCTION then
1087+
if curl.OPT_HSTSREADFUNCTION and HSTS then
10861088
function test_hstsreadfunction() test_cb('hstsreadfunction') end
10871089
function test_hstswritefunction() test_cb('hstswritefunction') end
10881090
end

0 commit comments

Comments
 (0)