mirror of
https://github.com/zedeus/nitter
synced 2026-10-26 20:53:25 +00:00
Fix CF block
This commit is contained in:
parent
5858809a08
commit
28b55a5017
2 changed files with 2 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ proc release*(pool: HttpPool; client: AsyncHttpClient; badClient=false) =
|
|||
|
||||
proc acquire*(pool: HttpPool; heads: HttpHeaders): AsyncHttpClient =
|
||||
if pool.conns.len == 0:
|
||||
result = newAsyncHttpClient(headers=heads, proxy=proxy)
|
||||
result = newAsyncHttpClient(userAgent="", headers=heads, proxy=proxy)
|
||||
else:
|
||||
result = pool.conns.pop()
|
||||
result.headers = heads
|
||||
|
|
|
|||
Loading…
Reference in a new issue