Better detection of file extension for mini server
This commit is contained in:
parent
9ccce5d861
commit
478f9affdd
|
@ -845,14 +845,14 @@ class Speedtest(object):
|
||||||
speedtest mini server
|
speedtest mini server
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name, ext = os.path.splitext(server)
|
urlparts = urlparse(server)
|
||||||
|
|
||||||
|
name, ext = os.path.splitext(urlparts[2])
|
||||||
if ext:
|
if ext:
|
||||||
url = os.path.dirname(server)
|
url = os.path.dirname(server)
|
||||||
else:
|
else:
|
||||||
url = server
|
url = server
|
||||||
|
|
||||||
urlparts = urlparse(url)
|
|
||||||
|
|
||||||
request = build_request(url)
|
request = build_request(url)
|
||||||
uh, e = catch_request(request)
|
uh, e = catch_request(request)
|
||||||
if e:
|
if e:
|
||||||
|
|
Loading…
Reference in New Issue