Reenable test hhtps

This commit is contained in:
jangko 2024-01-04 11:53:15 +07:00
parent 834de413d9
commit 2f6a605aa2
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 8 additions and 1 deletions

View File

@ -41,9 +41,15 @@ const
proc new(
T: type RpcHttpClient, maxBodySize = MaxHttpRequestSize, secure = false,
getHeaders: GetJsonRpcRequestHeaders = nil, flags: HttpClientFlags = {}): T =
var moreFlags: HttpClientFlags
if secure:
moreFlags.incl HttpClientFlag.NoVerifyHost
moreFlags.incl HttpClientFlag.NoVerifyServerName
T(
maxBodySize: maxBodySize,
httpSession: HttpSessionRef.new(flags = flags),
httpSession: HttpSessionRef.new(flags = flags + moreFlags),
getHeaders: getHeaders
)

View File

@ -13,6 +13,7 @@ import
testrpcmacro,
testethcalls,
testhttp,
testhttps,
testserverclient,
testproxy,
testhook,