瀏覽代碼

Fix URL proxying with query strings

legacy-python2
Ben Kurtovic 3 年之前
父節點
當前提交
42e2672aae
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      earwigbot/wiki/copyvios/workers.py

+ 2
- 0
earwigbot/wiki/copyvios/workers.py 查看文件

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


Loading…
取消
儲存