Skip to content
Myr

always get cookies

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 7999257 · Browse files · 2 files+2 added−7 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+2 added−7 removed

  • other:+2 added−7 removed

2 files+2 added−7 removed

modified:requests/defaults.py-4 removed
7 unmodified lines
89Configurations:1011:base_headers: Default HTTP headers.12:verbose: Stream to write request logging to.12:max_redirects: Maximum number of redirects allowed within a request.s13:keep_alive: Reuse HTTP Connections?14:max_retries: The number of times a request should be retried in the event of a connection failure.16:strict_mode: If true, Requests will do its best to follow RFCs (e.g. POST redirects).15:pool_maxsize: The maximium size of an HTTP connection pool.16:pool_connections: The number of active HTTP connection pools to use.17:encode_uri: If true, URIs will automatically be percent-encoded.18:trust_env: If true, the surrouding environment will be trusted (environ, netrc).21:store_cookies: If false, the received cookies as part of the HTTP response would be ignored.2219"""2021SCHEMAS = ['http', 'https']22
20 unmodified lines
modified:requests/models.py+2 added-3 removed
202 unmodified lines
203204 # Set encoding.205 response.encoding = get_encoding_from_headers(response.headers)206207 # Add new cookies from the server. Don't if configured not to208 if self.config.get('store_cookies'):209 extract_cookies_to_jar(self.cookies, self, resp)207 # Add new cookies from the server.208 extract_cookies_to_jar(self.cookies, self, resp)209210 # Save cookies in Response.211 response.cookies = self.cookies212
708 unmodified lines