From 8130055b2ea2b367bf7dd84bdb38936b1b16c3db Mon Sep 17 00:00:00 2001 From: Ian Macdonald Date: Wed, 2 Dec 2020 14:52:29 +0100 Subject: Evidently, requests must no longer be URL-encoded. (#33) Fix http://github.com/nlscc/samloader/issues/32 --- samloader/fusclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samloader/fusclient.py b/samloader/fusclient.py index 47e8686..fdb9f28 100644 --- a/samloader/fusclient.py +++ b/samloader/fusclient.py @@ -31,6 +31,6 @@ class FUSClient(object): if start > 0: headers["Range"] = "bytes={}-".format(start) r = requests.get("http://cloud-neofussvr.sslcs.cdngc.net/NF_DownloadBinaryForMass.do", - params={"file": filename}, headers=headers, stream=True) + params="file=" + filename, headers=headers, stream=True) r.raise_for_status() return r -- cgit v1.2.3