Sfoglia il codice sorgente

Fix URL proxying with query strings

legacy-python2
Ben Kurtovic 3 anni fa
parent
commit
42e2672aae
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      earwigbot/wiki/copyvios/workers.py

+ 2
- 0
earwigbot/wiki/copyvios/workers.py Vedi 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"]))


Caricamento…
Annulla
Salva