Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4c9664

Browse files
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.
2 parents 5e42354 + 02d5db2 commit f4c9664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/scripts/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def app(environ, respond):
2222
return util.FileWrapper(open(fn, "rb"))
2323
else:
2424
respond('404 Not Found', [('Content-Type', 'text/plain')])
25-
return ['not found']
25+
return [b'not found']
2626

2727
if __name__ == '__main__':
2828
path = sys.argv[1]

0 commit comments

Comments
 (0)