Skip to content

Commit

Permalink
Typo in documentation
Browse files Browse the repository at this point in the history
The kwarg is named `headers`, not `header`. Also, its a dict, not a set.
  • Loading branch information
sharat87 committed Jan 1, 1970
1 parent 9471b0a commit 5e6ecda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Sessions can also be used to provide default data to the request methods::
with requests.session(auth=auth, headers=headers) as c:

# both 'x-test' and 'x-test2' are sent
c.get('http://httpbin.org/headers', header={'x-test2', 'true'})
c.get('http://httpbin.org/headers', headers={'x-test2': 'true'})


.. admonition:: Global Settings
Expand Down

0 comments on commit 5e6ecda

Please sign in to comment.