Fix tlsclient (#30)

* fix npe in handshake

* fix tls client
This commit is contained in:
Dmitriy Ryajov 2021-05-25 15:00:53 -06:00 committed by GitHub
parent 5d0bcf6375
commit 0f48b62eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import pkg/[chronos,
chronicles,
stew/byteutils]
import ../ws/ws
import ../ws/ws, ../ws/errors
proc main() {.async.} =
let ws = await WebSocket.tlsConnect(

View File

@ -549,7 +549,7 @@ proc initiateHandshake(
except CatchableError as exc:
raise newException(
TransportError,
"Cannot connect to " & $transp.remoteAddress() & " Error: " & exc.msg)
"Cannot connect to " & $address & " Error: " & exc.msg)
let
requestHeader = "GET " & uri.path & " HTTP/1.1" & CRLF & $headers