diff options
| author | Xusheng <xusheng@vector35.com> | 2024-05-28 11:45:31 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2024-05-28 11:45:31 +0800 |
| commit | 2a6cef7eac64dc3df4a17ba3dc73fb5e1046fc29 (patch) | |
| tree | 87ebbea6c927a8f9038fde795edd6fc59f0a484b /python/downloadprovider.py | |
| parent | a348dab8b14b8ddd36c400ae39a7a48b6a28e829 (diff) | |
Fix Python DownloadProvider. Fix https://github.com/Vector35/binaryninja-api/issues/5467
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 4 |
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: |
