Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix /bytes endpoint with newer werkzeug versions
At some point, werkzeug starting checking the inputs to the write() method, which caused the following traceback: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 364, in run_wsgi execute(self.server.app) File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 328, in execute write(data) File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 296, in write assert isinstance(data, bytes), "applications must write bytes" AssertionError: applications must write bytes Fix this by using bytes instead of bytearray.
- Loading branch information