mirror of
https://github.com/uklans/cache-domains
synced 2025-06-18 15:42:56 +02:00
add cloudflare comment
This commit is contained in:
parent
b6ddac9531
commit
27f066bb8b
@ -15,7 +15,7 @@ CACHE_DOMAINS_JSON = "cache_domains.json"
|
||||
DELAY_SECONDS = 1 # delay between requests
|
||||
MAX_RETRIES = 5 # maximum retries if rate limited
|
||||
BACKOFF_FACTOR = 2 # exponential backoff multiplier
|
||||
USER_AGENT = "python-requests/2.31.0"
|
||||
USER_AGENT = "python-requests/2.31.0" # for some reason, Cloudflare will block urllib's default user-agent
|
||||
|
||||
|
||||
def post_redirect(base_url, api_key, payload):
|
||||
|
Loading…
Reference in New Issue
Block a user