summaryrefslogtreecommitdiff
path: root/python/downloadprovider.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-23 09:43:53 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commit8605213659115157e4ab0bf1c24783c4a896d025 (patch)
tree9a44a23a93cc4bcfc15a714d7289eddef46f962b /python/downloadprovider.py
parent6de4900db74a341fddfda46f7cb4342fdc31f8e0 (diff)
Refactor RegisterValue class into multiple dataclasses which can be instantiated directly
Diffstat (limited to 'python/downloadprovider.py')
-rw-r--r--python/downloadprovider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/downloadprovider.py b/python/downloadprovider.py
index e5f3cb3c..3104b08d 100644
--- a/python/downloadprovider.py
+++ b/python/downloadprovider.py
@@ -397,7 +397,7 @@ try:
if b"Content-Length" in headers:
del headers[b"Content-Length"]
- r = requests.request(pyNativeStr(method), pyNativeStr(url), headers=headers, data=data_generator, proxies=proxies, stream=True)
+ r = requests.request(method.decode('utf8'), url.decode('utf8'), headers=headers, data=data_generator, proxies=proxies, stream=True)
total_size = 0
for (key, value) in r.headers.items():