From 4b2a207ab7c2743bc281b6d391422ffbf295f075 Mon Sep 17 00:00:00 2001 From: Scott Silver Date: Sun, 4 Dec 2022 22:16:53 +0000 Subject: [PATCH] Back out 'bug fix' and fix some spacing in help text. --- speedtest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/speedtest.py b/speedtest.py index 20e60c8..5bb9c5f 100755 --- a/speedtest.py +++ b/speedtest.py @@ -1130,7 +1130,6 @@ 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) @@ -1771,8 +1770,8 @@ def parse_args(): parser.add_argument('--mini', help='URL of the Speedtest Mini server') parser.add_argument('--source', help='Source IP address and source port to bind to.' - 'Use the form A.B.C.D:P. You can leave the IP' - 'address or port empty and eliminate the colon' + 'Use the form A.B.C.D:P. You can leave the IP ' + 'address or port empty and eliminate the colon ' 'for defaults') parser.add_argument('--timeout', default=10, type=PARSER_TYPE_FLOAT, help='HTTP timeout in seconds. Default 10')