Merge pull request #3691 from Cleod9/readme-typo-domain-arg

Fixes small readme typo - site => domain
This commit is contained in:
Cory Benfield
2016-11-16 08:39:06 +00:00
committed by GitHub
+2 -2
View File
@@ -423,8 +423,8 @@ suitable for use over multiple domains or paths. Cookie jars can
also be passed in to requests::
>>> jar = requests.cookies.RequestsCookieJar()
>>> jar.set('tasty_cookie', 'yum', site='httpbin.org', path='/cookies')
>>> jar.set('gross_cookie', 'blech', site='httpbin.org', path='/elsewhere')
>>> jar.set('tasty_cookie', 'yum', domain='httpbin.org', path='/cookies')
>>> jar.set('gross_cookie', 'blech', domain='httpbin.org', path='/elsewhere')
>>> url = 'http://httpbin.org/cookies'
>>> r = requests.get(url, cookies=jar)
>>> r.text