python-hyper / h2

HTTP/2 State-Machine based protocol implementation
https://h2.readthedocs.io/en/stable
MIT License
963 stars 151 forks source link

Fix bug when v is None #1281

Open puke3615 opened 6 months ago

puke3615 commented 6 months ago

When we use a library called 'wechaty', the variable v may be None. And at this time, it will throw an exception: 'NoneType' object has no attribute 'encode'.