This commit is contained in:
tesonwang 2022-11-22 14:25:27 +08:00 committed by GitHub
commit bedb3b00cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1129,6 +1129,7 @@ class Speedtest(object):
headers = {}
if gzip:
headers['Accept-Encoding'] = 'gzip'
headers['Accept'] = 'text/html,application/xhtml+xml,application/xml'
request = build_request('://www.speedtest.net/speedtest-config.php',
headers=headers, secure=self._secure)
uh, e = catch_request(request, opener=self._opener)