Fixes httpclient SSL issue. Implements unbuffered SSL recv. Ref #1487.
This commit is contained in:
parent
cda457c865
commit
bd542ebea3
3 changed files with 39 additions and 22 deletions
|
|
@ -466,7 +466,8 @@ proc newAsyncHttpClient*(userAgent = defUserAgent,
|
|||
result.headers = newStringTable(modeCaseInsensitive)
|
||||
result.userAgent = defUserAgent
|
||||
result.maxRedirects = maxRedirects
|
||||
result.sslContext = net.SslContext(sslContext)
|
||||
when defined(ssl):
|
||||
result.sslContext = net.SslContext(sslContext)
|
||||
|
||||
proc close*(client: AsyncHttpClient) =
|
||||
## Closes any connections held by the HTTP client.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue