Browse Source

Fix URL proxying with query strings

legacy-python2
Ben Kurtovic 3 years ago
parent
commit
42e2672aae
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      earwigbot/wiki/copyvios/workers.py

+ 2
- 0
earwigbot/wiki/copyvios/workers.py View File

@@ -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…
Cancel
Save