relocate build url with base_url

This commit is contained in:
debugtalk
2019-04-08 14:11:49 +08:00
parent 7a7c5503f8
commit 1c207e2dc4
5 changed files with 18 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ def get_os_environ(variable_name):
def build_url(base_url, path):
""" prepend url with hostname unless it's already an absolute URL """
""" prepend url with base_url unless it's already an absolute URL """
if absolute_http_url_regexp.match(path):
return path
elif base_url: