From dd78145132b617483542b54e0adbd46cf4adb8a4 Mon Sep 17 00:00:00 2001 From: Dmitry Dorofeev Date: Tue, 3 Apr 2018 17:17:24 +0300 Subject: [PATCH] Make WSGI app in run.rst Python 3 compatible (#1741) Fixes #1737 --- docs/source/run.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/run.rst b/docs/source/run.rst index cfc3ba37..3100c526 100644 --- a/docs/source/run.rst +++ b/docs/source/run.rst @@ -32,10 +32,10 @@ Example with the test app: def app(environ, start_response): """Simplest possible application object""" - data = 'Hello, World!\n' + data = b'Hello, World!\n' status = '200 OK' response_headers = [ - ('Content-type','text/plain'), + ('Content-type', 'text/plain'), ('Content-Length', str(len(data))) ] start_response(status, response_headers)