The http example was failing for me with the following:
File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 184, in finish_response
self.write(data)
File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 279, in write
"write() argument must be a bytes instance"
It looks like the data being returned was a bytearray, not a bytes.
The http example was failing for me with the following:
File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 138, in run self.finish_response() File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 184, in finish_response self.write(data) File "C:\Users\pcreinhold\Miniconda3\lib\wsgiref\handlers.py", line 279, in write "write() argument must be a bytes instance"
It looks like the data being returned was a bytearray, not a bytes.