summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-02-08 13:54:03 +0100
committerGitHub <noreply@github.com>2021-02-08 13:54:03 +0100
commitabac35e7437dd1ac2b3687dfa51de7f9d4b6e853 (patch)
tree2b455ca45c7d8c19aa93d29dd714c622b68d8eca /tests/stdlib
parentf140c924090f29e11c2b1d8348413eb4efa4ebe9 (diff)
downloadNim-abac35e7437dd1ac2b3687dfa51de7f9d4b6e853.tar.gz
basic cleanups regarding SSL handling (#16940) [backport:1.0]
* basic cleanups regarding SSL handling
* enabled certificate checking on Windows
* updated the SSL test
* quoting helps
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/thttpclient_ssl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stdlib/thttpclient_ssl.nim b/tests/stdlib/thttpclient_ssl.nim
index 71745c9df..1c531eae9 100644
--- a/tests/stdlib/thttpclient_ssl.nim
+++ b/tests/stdlib/thttpclient_ssl.nim
@@ -101,7 +101,7 @@ when not defined(windows):
       let t = spawn runServer(port)
       sleep(100)
 
-      var client = newHttpClient()
+      var client = newHttpClient(sslContext=newContext(verifyMode=CVerifyNone))
       try:
         log "client: connect"
         discard client.getContent("https://127.0.0.1:12345")