From 5e6ecdad9f69b1ff789a17733b8edc6fd7091bd8 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 8 Sep 2011 02:38:50 +51800 Subject: [PATCH] Typo in documentation The kwarg is named `headers`, not `header`. Also, its a dict, not a set. --- docs/user/advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index cdf1abb63c..d145da21ef 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -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