summaryrefslogtreecommitdiff
path: root/python/downloadprovider.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/downloadprovider.py')
-rw-r--r--python/downloadprovider.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/downloadprovider.py b/python/downloadprovider.py
index 9ac5faae..169f08fc 100644
--- a/python/downloadprovider.py
+++ b/python/downloadprovider.py
@@ -128,8 +128,8 @@ class DownloadInstance(object):
self.bn_response.headerKeys = (ctypes.c_char_p * len(py_response.headers))()
self.bn_response.headerValues = (ctypes.c_char_p * len(py_response.headers))()
for i, (key, value) in enumerate(py_response.headers.items()):
- self.bn_response.headerKeys[i] = core.BNAllocString(key.decode('utf8'))
- self.bn_response.headerValues[i] = core.BNAllocString(value.decode('utf8'))
+ self.bn_response.headerKeys[i] = core.BNAllocString(key)
+ self.bn_response.headerValues[i] = core.BNAllocString(value)
out_response[0] = ctypes.pointer(self.bn_response)
else: