core: fix our decode_header() to work with Python3
Python's decode_header doesn't always return bytes as we expected. So we have to check and call decode() only on bytes objects.
parent
4cccd2f3
Please register or sign in to comment
Python's decode_header doesn't always return bytes as we expected. So we have to check and call decode() only on bytes objects.