|
@@ -138,6 +138,8 @@ class _CopyvioWorker(object): |
|
|
continue |
|
|
continue |
|
|
path = path[len(proxy_info["path"]):] |
|
|
path = path[len(proxy_info["path"]):] |
|
|
url = proxy_info["target"] + path |
|
|
url = proxy_info["target"] + path |
|
|
|
|
|
if parsed.query: |
|
|
|
|
|
url += '?' + parsed.query |
|
|
if "auth" in proxy_info: |
|
|
if "auth" in proxy_info: |
|
|
extra_headers["Authorization"] = "Basic %s" % ( |
|
|
extra_headers["Authorization"] = "Basic %s" % ( |
|
|
base64.b64encode(proxy_info["auth"])) |
|
|
base64.b64encode(proxy_info["auth"])) |
|
|