mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
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.} =
|
||||
var
|
||||
token = if oldApi: nil else: await getToken()
|
||||
token = await getToken()
|
||||
client = newAsyncHttpClient(headers=genHeaders(token))
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue