From: Shrikant Sharat Kandula Date: Wed, 17 Aug 2011 12:38:50 +0000 (+051800) Subject: Typo in documentation X-Git-Tag: v0.6.1~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e6ecdad9f69b1ff789a17733b8edc6fd7091bd8;p=services%2Fpython-requests.git Typo in documentation The kwarg is named `headers`, not `header`. Also, its a dict, not a set. --- diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index cdf1abb..d145da2 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