Revert token change
This commit is contained in:
parent
6167e7dc49
commit
7e40af5611
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ proc genHeaders*(token: Token = nil): HttpHeaders =
|
||||||
|
|
||||||
proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
|
proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
|
||||||
var
|
var
|
||||||
token = if oldApi: nil else: await getToken()
|
token = await getToken()
|
||||||
client = newAsyncHttpClient(headers=genHeaders(token))
|
client = newAsyncHttpClient(headers=genHeaders(token))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue