|
@@ -14,10 +14,10 @@ def err_details(worker):
|
|
|
return worker
|
|
|
|
|
|
|
|
|
-def extract_base_url(url):
|
|
|
+def extract_host(url):
|
|
|
"""
|
|
|
|
|
|
- # >>> base_url = extract_base_url('http://192.168.3.207:8080/')
|
|
|
+ # >>> base_url = extract_host('http://192.168.3.207:8080/')
|
|
|
"""
|
|
|
_s, _h, _p = get_host(url)
|
|
|
return f"{_s}://{_h}/" if _p is None else f"{_s}://{_h}:{_p}/"
|