From 02d5db277743050488ad6298817b2956f22c63db Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 11 Jan 2014 11:52:20 +0200 Subject: Fixed the serve.py script. The application object must return an iterable yielding bytestrings. --- Tools/scripts/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py index 68c25f0..dae21f2 100755 --- a/Tools/scripts/serve.py +++ b/Tools/scripts/serve.py @@ -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] -- cgit v0.12