diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-09-19 19:36:35 +0200 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-09-19 19:36:35 +0200 |
commit | 1fb5dd247745e06c85a2ed1ad8f8f09f0a38b9b9 (patch) | |
tree | f5615e5845b1ed3c920fc8a34004532269daae56 | |
parent | 8386476592a1fafea7f62d18604ac8534f9b1834 (diff) | |
download | Nim-1fb5dd247745e06c85a2ed1ad8f8f09f0a38b9b9.tar.gz |
Fixes #4797.
-rw-r--r-- | lib/pure/net.nim | 3 | ||||
-rw-r--r-- | tests/stdlib/thttpclient.nim | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index c26511f6a..a70f60a8e 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -106,6 +106,9 @@ when defineSsl: {.deprecated: [ESSL: SSLError, TSSLCVerifyMode: SSLCVerifyMode, TSSLProtVersion: SSLProtVersion, PSSLContext: SSLContext, TSSLAcceptResult: SSLAcceptResult].} +else: + type + SslContext* = void # TODO: Workaround #4797. const BufferSize*: int = 4000 ## size of a buffered socket's buffer diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim index d0cf25b45..9412a5afa 100644 --- a/tests/stdlib/thttpclient.nim +++ b/tests/stdlib/thttpclient.nim @@ -1,3 +1,7 @@ +discard """ + cmd: "nim c -d:ssl $file" +""" + import strutils from net import TimeoutError |