Fix CF block

This commit is contained in:
Zed 2026-08-19 02:39:25 +07:00
commit 28b55a5017
2 changed files with 2 additions and 3 deletions

View file

@ -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