Update apiutils.nim

This commit is contained in:
drpepper66666 2023-07-03 00:59:12 +02:00 committed by GitHub
parent a89f1cd0c8
commit 9101b10f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ proc genParams*(pars: openArray[(string, string)] = @[]; cursor="";
proc genHeaders*(token: Token = nil): HttpHeaders =
result = newHttpHeaders({
"connection": "keep-alive",
"authorization": if token == nill: "" else: token.bearerTok,
"authorization": if token == nil: "" else: token.bearerTok,
"content-type": "application/json",
"x-guest-token": if token == nil: "" else: token.tok,
"x-twitter-active-user": "yes",