From 41c9559cf469f147740fc851a6b0988c62319d02 Mon Sep 17 00:00:00 2001 From: sashk Date: Tue, 20 Jun 2017 21:17:35 -0400 Subject: [PATCH] Workaround for #405. --- speedtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speedtest.py b/speedtest.py index 8b8526a..3a85c2c 100755 --- a/speedtest.py +++ b/speedtest.py @@ -394,9 +394,9 @@ def build_user_agent(): ua_tuple = ( 'Mozilla/5.0', '(%s; U; %s; en-us)' % (platform.system(), platform.architecture()[0]), - 'Python/%s' % platform.python_version(), + 'Gecko/20100101', '(KHTML, like Gecko)', - 'speedtest-cli/%s' % __version__ + 'Firefox/53.0' ) USER_AGENT = ' '.join(ua_tuple) printer(USER_AGENT, debug=True)