Kaydet (Commit) 02d5db27 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fixed the serve.py script.

The application object must return an iterable yielding bytestrings.
üst e0837a03
......@@ -22,7 +22,7 @@ def app(environ, respond):
return util.FileWrapper(open(fn, "rb"))
else:
respond('404 Not Found', [('Content-Type', 'text/plain')])
return ['not found']
return [b'not found']
if __name__ == '__main__':
path = sys.argv[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment