mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
get cookie like dict, such as self.cookies.get('test', 'no cookie')
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
|
||||
Unlike a regular CookieJar, this class is pickleable.
|
||||
"""
|
||||
|
||||
def get(self, name, domain=None, path=None, default=None):
|
||||
def get(self, name, default=None, domain=None, path=None):
|
||||
try:
|
||||
return self._find(name, domain, path)
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user