Prevent a redirect and use the final URL

This commit is contained in:
Matt Martz 2014-06-25 11:06:05 -05:00
parent 3655a31ac1
commit c0cd0d1666
1 changed files with 1 additions and 1 deletions

View File

@ -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))