Updated user agent string.
This commit is contained in:
parent
41c9559cf4
commit
1e0e3f2e2f
|
@ -393,10 +393,10 @@ def build_user_agent():
|
||||||
|
|
||||||
ua_tuple = (
|
ua_tuple = (
|
||||||
'Mozilla/5.0',
|
'Mozilla/5.0',
|
||||||
'(%s; U; %s; en-us)' % (platform.system(), platform.architecture()[0]),
|
'(%s; U; %s; rv:%s)' % (platform.system(), platform.architecture()[0], __version__),
|
||||||
'Gecko/20100101',
|
'Gecko/20100101',
|
||||||
'(KHTML, like Gecko)',
|
'(KHTML, like Gecko)',
|
||||||
'Firefox/53.0'
|
'speedtest-cli'
|
||||||
)
|
)
|
||||||
USER_AGENT = ' '.join(ua_tuple)
|
USER_AGENT = ' '.join(ua_tuple)
|
||||||
printer(USER_AGENT, debug=True)
|
printer(USER_AGENT, debug=True)
|
||||||
|
|
Loading…
Reference in New Issue