[utils] random_user_agent: Bump version range 143-149 => 144-150 (#17117)

Authored by: dlp-bot, bashonly

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
dlp-bot 2026-07-02 20:16:54 +02:00 committed by GitHub
parent 40dd052c03
commit d120d841dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,10 +15,10 @@ from .traversal import traverse_obj
def random_user_agent():
USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{} Safari/537.36'
USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{}.0.0.0 Safari/537.36'
# Target versions released within the last ~6 months
CHROME_MAJOR_VERSION_RANGE = (143, 149)
return USER_AGENT_TMPL.format(f'{random.randint(*CHROME_MAJOR_VERSION_RANGE)}.0.0.0')
CHROME_MAJOR_VERSION_RANGE = (144, 150)
return USER_AGENT_TMPL.format(random.randint(*CHROME_MAJOR_VERSION_RANGE))
class HTTPHeaderDict(dict):