Fixed str/bytes problem
@@ -426,7 +426,7 @@ class WSGITileServer:
status_code, headers, content = requestHandler2(self.config, path_info, query_string, script_name)
- return self._response(start_response, status_code, str(content), headers)
+ return self._response(start_response, status_code, bytes(content), headers)
def _response(self, start_response, code, content='', headers=None):
"""
