mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-07 16:13:07 +00:00
Reenable test hhtps
This commit is contained in:
parent
834de413d9
commit
2f6a605aa2
@ -41,9 +41,15 @@ const
|
|||||||
proc new(
|
proc new(
|
||||||
T: type RpcHttpClient, maxBodySize = MaxHttpRequestSize, secure = false,
|
T: type RpcHttpClient, maxBodySize = MaxHttpRequestSize, secure = false,
|
||||||
getHeaders: GetJsonRpcRequestHeaders = nil, flags: HttpClientFlags = {}): T =
|
getHeaders: GetJsonRpcRequestHeaders = nil, flags: HttpClientFlags = {}): T =
|
||||||
|
|
||||||
|
var moreFlags: HttpClientFlags
|
||||||
|
if secure:
|
||||||
|
moreFlags.incl HttpClientFlag.NoVerifyHost
|
||||||
|
moreFlags.incl HttpClientFlag.NoVerifyServerName
|
||||||
|
|
||||||
T(
|
T(
|
||||||
maxBodySize: maxBodySize,
|
maxBodySize: maxBodySize,
|
||||||
httpSession: HttpSessionRef.new(flags = flags),
|
httpSession: HttpSessionRef.new(flags = flags + moreFlags),
|
||||||
getHeaders: getHeaders
|
getHeaders: getHeaders
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import
|
|||||||
testrpcmacro,
|
testrpcmacro,
|
||||||
testethcalls,
|
testethcalls,
|
||||||
testhttp,
|
testhttp,
|
||||||
|
testhttps,
|
||||||
testserverclient,
|
testserverclient,
|
||||||
testproxy,
|
testproxy,
|
||||||
testhook,
|
testhook,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user