From e3b7d6d5715b8b45065e4a31edb706961b41b570 Mon Sep 17 00:00:00 2001 From: drpepper66 Date: Fri, 17 Nov 2023 23:20:01 +0100 Subject: [PATCH] put a basic UA in there --- src/auth.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.nim b/src/auth.nim index 6f58eec..6d4b0b3 100644 --- a/src/auth.nim +++ b/src/auth.nim @@ -218,7 +218,7 @@ proc updateAccountPool*(cfg: Config) {.async.} = if accountPool.len == 0: log "fetching more accounts from service" - let client = newAsyncHttpClient() + let client = newAsyncHttpClient("nitter-accounts") try: let resp = await client.get($(cfg.guestAccountsPoolUrl ? {"id": cfg.guestAccountsPoolId, "auth": cfg.guestAccountsPoolAuth}))