Skip to content

Commit

Permalink
application() must return bytes, but start_response() takes str
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Sep 19, 2017
1 parent bc4c128 commit 1bc9f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/web/howto/web-in-60/wsgi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ simple one just to get things going:
def application(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
return ['Hello, world!']
return [b'Hello, world!']
Expand Down

0 comments on commit 1bc9f6e

Please sign in to comment.