Skip to content

Commit

Permalink
Reenable test hhtps
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Jan 4, 2024
1 parent 834de41 commit 2f6a605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion json_rpc/clients/httpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
1 change: 1 addition & 0 deletions tests/all.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import
testrpcmacro,
testethcalls,
testhttp,
testhttps,
testserverclient,
testproxy,
testhook,
Expand Down

0 comments on commit 2f6a605

Please sign in to comment.