Fixed the serve.py script.

The application object must return an iterable yielding bytestrings.
This commit is contained in:
Serhiy Storchaka 2014-01-11 11:53:13 +02:00
commit f4c9664a24
1 changed files with 1 additions and 1 deletions

View File

@ -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]