From 0104753421cf92c38c8ca137addd3a94c127fe58 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sat, 18 Nov 2017 07:19:18 +0200 Subject: [PATCH] Fix quickstart json examples --- docs/client_quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/client_quickstart.rst b/docs/client_quickstart.rst index 6b483802262..8298c6b88c9 100644 --- a/docs/client_quickstart.rst +++ b/docs/client_quickstart.rst @@ -158,7 +158,7 @@ Any of session's request methods like :func:`request`, `json` parameter:: async with aiohttp.ClientSession() as session: - async with session.post(json={'test': 'object'}) + async with session.post(url, json={'test': 'object'}) By default session uses python's standard :mod:`json` module for @@ -169,7 +169,7 @@ parameter:: import ujson async with aiohttp.ClientSession(json_serialize=ujson.dumps) as session: - async with session.post(json={'test': 'object'}) + async with session.post(url, json={'test': 'object'}) .. note::