Skip to content
Snippets Groups Projects
Commit 0aa8dbb8 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Fix another decoding issue, too

parent 907f0fe7
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ def get_decoded_header(value):
decoded_header_items = decode_header(value)
decoded_header_value = ''
for item in decoded_header_items:
decoded_item = item[0].decode(item[1]) if item[1] is not None else item[0]
decoded_item = item[0].decode(item[1], 'replace') if item[1] is not None else item[0]
if isinstance(decoded_item, bytes):
decoded_item = decoded_item.decode('ascii', 'replace')
decoded_header_value += decoded_item
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment