Typo in documentation
authorShrikant Sharat Kandula <shrikantsharat.k@gmail.com>
Wed, 17 Aug 2011 12:38:50 +0000 (12:38 +051800)
committerShrikant Sharat Kandula <shrikantsharat.k@gmail.com>
Wed, 17 Aug 2011 12:38:50 +0000 (12:38 +051800)
The kwarg is named `headers`, not `header`. Also, its a dict, not a set.

docs/user/advanced.rst

index cdf1abb63c3e242dfa78c8cf04279ff4a76f3452..d145da21ef502f718dbc4c58a36d7686ae8a573c 100644 (file)
@@ -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