Skip to content

Commit

Permalink
Small documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 14, 2017
1 parent 29e5eac commit 1cb4fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/client_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

This comment has been minimized.

Copy link
@socketpair

socketpair Dec 15, 2017

Contributor

Да ну что же это за невезучесть. равно-то внутри скобок надо @asvetlov

This comment has been minimized.

Copy link
@asvetlov

asvetlov Dec 15, 2017

Author Member

Ооопс.
d02ca2a

async with session.get("http://httpbin.org/headers") as r:
json_body = await r.json()
assert json_body['headers']['Authorization'] == \
Expand Down

0 comments on commit 1cb4fa2

Please sign in to comment.