From 1cb4fa276a7bae85429ee2eb7eedebe064c699d2 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Fri, 15 Dec 2017 00:12:53 +0200 Subject: [PATCH] Small documentation fix --- docs/client_advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/client_advanced.rst b/docs/client_advanced.rst index 2524687f70a..3aeff04a71e 100644 --- a/docs/client_advanced.rst +++ b/docs/client_advanced.rst @@ -40,7 +40,7 @@ For example, if you want to specify the content-type directly:: You also can set default headers for all session requests:: headers={"Authorization": "Basic bG9naW46cGFzcw=="} - async with aiohttp.ClientSession(headers) as session: + async with aiohttp.ClientSession(headers)=headers as session: async with session.get("http://httpbin.org/headers") as r: json_body = await r.json() assert json_body['headers']['Authorization'] == \