Skip to content
Myr

cookie session persistence

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 66391e5 · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:requests/sessions.py+9 added
10 unmodified lines
1112import cookielib1314from . import api15from .utils import add_dict_to_cookiejar16171819class Session(object):
38 unmodified lines
58 if k in self.__attrs__)59 # Combine instance-local values with kwargs values, with60 # priority to values in kwargs61 kwargs = dict(inst_attrs.items() + kwargs.items())6263 # If a session request has a cookie_dict, inject the64 # values into the existing CookieJar instead.65 if isinstance(kwargs.get('cookies', None), dict):66 kwargs['cookies'] = add_dict_to_cookiejar(67 inst_attrs['cookies'], kwargs['cookies']68 )6970 return func(*args, **kwargs)71 return wrapper_func7273 # Map and decorate each function available in requests.api
8 unmodified lines