diff --git a/lib/disco/util.py b/lib/disco/util.py index 53e78cdfd..0812bf6f2 100644 --- a/lib/disco/util.py +++ b/lib/disco/util.py @@ -245,7 +245,7 @@ def parse_dir(dir, label=None): def proxy_url(url, proxy=DiscoSettings()['DISCO_PROXY'], meth='GET', to_master=True): scheme, (host, port), path = urlsplit(url) # if the url contains a dot, it is an external resource, so do not proxy it - if proxy and scheme == "http" and url.find('.') == -1: + if proxy and scheme != "tag" and not (scheme == "http" and url.find('.') > -1): if to_master: return '{0}/{1}'.format(proxy, path) return '{0}/proxy/{1}/{2}/{3}'.format(proxy, host, meth, path)