Skip to content
Myr

from cookies import extract_cookies_to_jar

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 e766f0b · Browse files · 2 files+4 added−6 removed
This commit

State

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

Diff stats

2 files+4 added−6 removed

  • other:+4 added−6 removed

2 files+4 added−6 removed

modified:requests/adapters.py+3 added-2 removed
18 unmodified lines
19from .packages.urllib3.exceptions import SSLError as _SSLError20from .packages.urllib3.exceptions import HTTPError as _HTTPError21from .packages.urllib3 import connectionpool, poolmanager22from .packages.urllib3.filepost import encode_multipart_formdata23from .cookies import extract_cookies_to_jar24from .exceptions import (25ConnectionError, HTTPError, RequestException, Timeout, TooManyRedirects,26URLRequired, SSLError, MissingSchema, InvalidSchema, InvalidURL)27
81 unmodified lines
109 response.url = req.url.decode('utf-8')110 else:111 response.url = req.url112112 return response113 # Add new cookies from the server.114 # extract_cookies_to_jar(self.cookies, self, resp)114 extract_cookies_to_jar(response.cookies, req, resp)115116 return response117118119 def close(self):120 """Dispose of any internal state.
53 unmodified lines
modified:requests/models.py+1 added-4 removed
383 unmodified lines
384385 self.reason = None386387 #: A CookieJar of Cookies the server sent back.388 self.cookies = None388 self.cookies = cookiejar_from_dict({})389390 #: Dictionary of configurations for this request.391 self.config = {}392390 def __repr__(self):391 return '<Response [%s]>' % (self.status_code)392393 def __bool__(self):
186 unmodified lines