Skip to content

Commit

Permalink
Fixed mistype in 'Proxy Support' section of documentation (#2688)
Browse files Browse the repository at this point in the history
* fixed mistype in proxy support section of documentation

* added changelog file
  • Loading branch information
cpwr authored and asvetlov committed Jan 25, 2018
1 parent d035426 commit a1abde0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/2688.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed mistype in `Proxy Support` section where `trust_env` parameter was used in `session.get("http://python.org", trust_env=True)` method instead of aiohttp.ClientSession constructor as follows: `aiohttp.ClientSession(trust_env=True)`.
4 changes: 2 additions & 2 deletions docs/client_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ constructor for extracting proxy configuration from
*HTTP_PROXY* or *HTTPS_PROXY* *environment variables* (both are case
insensitive)::

async with aiohttp.ClientSession() as session:
async with session.get("http://python.org", trust_env=True) as resp:
async with aiohttp.ClientSession(trust_env=True) as session:
async with session.get("http://python.org") as resp:
print(resp.status)

Proxy credentials are given from ``~/.netrc`` file if present (see
Expand Down

0 comments on commit a1abde0

Please sign in to comment.