Skip to content

Commit 5e6ecda

Browse files
committed
Typo in documentation
The kwarg is named `headers`, not `header`. Also, its a dict, not a set.
1 parent 9471b0a commit 5e6ecda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/user/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Sessions can also be used to provide default data to the request methods::
3434
with requests.session(auth=auth, headers=headers) as c:
3535

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

3939

4040
.. admonition:: Global Settings

0 commit comments

Comments
 (0)