mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 02:35:15 +00:00
no-op on nil
This commit is contained in:
parent
b455958d8a
commit
2d0a417844
@ -116,8 +116,9 @@ when useNews:
|
||||
# TODO: This is a hack, because the table might be case sensitive. Ideally strtabs module has
|
||||
# to be extended with case insensitive accessors.
|
||||
headers["Origin"] = "http://localhost"
|
||||
for header in client.getHeaders():
|
||||
headers[header[0]] = header[1]
|
||||
if not isNil(client.getHeaders):
|
||||
for header in client.getHeaders():
|
||||
headers[header[0]] = header[1]
|
||||
client.transport = await newWebSocket(uri, headers)
|
||||
client.uri = uri
|
||||
client.loop = processData(client)
|
||||
|
Loading…
x
Reference in New Issue
Block a user