feat: cookie-jar по хосту, CLI omni add для своих источников, README про ключи/прокси/куки/свой сервер

This commit is contained in:
ENI
2026-10-26 17:33:03 +03:00
parent 1c32a5c630
commit 4196d66b4e
4 changed files with 64 additions and 2 deletions

View File

@@ -126,6 +126,9 @@ def get(url, headers=None, timeout=None, json_mode=False):
h["Accept"] = "application/json"
h["Content-Type"] = "application/json"
h.update(headers or {})
ck = config.cookies_for(host)
if ck:
h["Cookie"] = ck
first = _try_httpx(url, h, timeout, None)
if first.ok and not first.blocked: