Skip to content

Commit 2904c07

Browse files
committed
Fix aio-libs#368: use text onstead of binary in response example
1 parent 779341c commit 2904c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A trivial usage example:
3737
async def handler(request):
3838
session = await get_session(request)
3939
session['last_visit'] = time.time()
40-
return web.Response(body=b'OK')
40+
return web.Response(text='OK')
4141
4242
def init():
4343
app = web.Application()

0 commit comments

Comments
 (0)