Skip to content
Myr

blargh

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

  • other:+14 added−2 removed

2 files+14 added−2 removed

modified:requests/_config.py+12 added-2 removed
37 unmodified lines
3839# Module-level defaults.40defaults = dict()4142defaults['base_headers'] = {'User-Agent': 'python-requests.org'}43defaults['accept_gzip'] = True42defaults['base_headers'] = {43 'User-Agent': 'python-requests.org',44 'Accept-Encoding': ', '.join([ 'identity', 'deflate', 'compress', 'gzip' ]),45}4647# defaults['accept_gzip'] = True48defaults['proxies'] = {}49defaults['verbose'] = None50defaults['timeout'] = None51defaults['max_redirects'] = 30
1 unmodified line
53defaults['keep_alive'] = True54defaults['max_connections'] = 10555657defaults['hooks'] = {58 'args': list(),59 'pre_request': list(),60 'post_request': list(),61 'response': list()62}
modified:requests/utils.py+2 added
278 unmodified lines
279280 3. fall back and replace all unicode characters281282 """283 # TODO: DEBUG284 return r.content285286 tried_encodings = []287288 # Try charset from content-type
113 unmodified lines