no-op on nil
This commit is contained in:
parent
b455958d8a
commit
2d0a417844
|
@ -116,6 +116,7 @@ when useNews:
|
||||||
# TODO: This is a hack, because the table might be case sensitive. Ideally strtabs module has
|
# TODO: This is a hack, because the table might be case sensitive. Ideally strtabs module has
|
||||||
# to be extended with case insensitive accessors.
|
# to be extended with case insensitive accessors.
|
||||||
headers["Origin"] = "http://localhost"
|
headers["Origin"] = "http://localhost"
|
||||||
|
if not isNil(client.getHeaders):
|
||||||
for header in client.getHeaders():
|
for header in client.getHeaders():
|
||||||
headers[header[0]] = header[1]
|
headers[header[0]] = header[1]
|
||||||
client.transport = await newWebSocket(uri, headers)
|
client.transport = await newWebSocket(uri, headers)
|
||||||
|
|
Loading…
Reference in New Issue