Prevent a redirect and use the final URL
This commit is contained in:
parent
3655a31ac1
commit
c0cd0d1666
|
@ -338,7 +338,7 @@ def closestServers(client, all=False):
|
|||
distance
|
||||
"""
|
||||
|
||||
uh = urlopen('http://www.speedtest.net/speedtest-servers.php')
|
||||
uh = urlopen('http://c.speedtest.net/speedtest-servers-static.php')
|
||||
serversxml = []
|
||||
while 1:
|
||||
serversxml.append(uh.read(10240))
|
||||
|
|
Loading…
Reference in New Issue