Tanganelli / CoAPthon3

CoAPthon3 is a porting to python3 of my CoAPthon library. CoAPthon3 is a python3 library to the CoAP protocol compliant with the RFC. Branch is available for the Twisted framework.
MIT License
58 stars 50 forks source link

Fix token handling #36

Closed hubertmis closed 3 years ago

hubertmis commented 3 years ago

Token was encoded as utf-8 string. However, token is a byte string that is not required to be utf-8 encodable. This patch changes token type in the Message class to string of bytes instead of string of characters.

Signed-off-by: Hubert Miś hubert.mis@gmail.com