Skip to content
Myr

kill accept_gzip config

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

  • other:+2 added−15 removed

2 files+2 added−15 removed

modified:requests/defaults.py+1 added-11 removed
26 unmodified lines
27 'User-Agent': 'python-requests/{0}'.format(__version__),28 'Accept-Encoding': ', '.join([ 'identity', 'deflate', 'compress', 'gzip' ]),29}303132# defaults['accept_gzip'] = True31defaults['proxies'] = {}32defaults['verbose'] = None33defaults['timeout'] = None34defaults['max_redirects'] = 3035defaults['decode_unicode'] = True36defaults['timeout_fallback'] = True37# defaults['keep_alive'] = True40# defaults['max_connections'] = 10414243# defaults['hooks'] = {44# 'args': list(),45# 'pre_request': list(),46# 'post_request': list(),47# 'response': list()48# }38# defaults['max_connections'] = 10
modified:requests/models.py+1 added-4 removed
12# -*- coding: utf-8 -*-34"""5requests.models
107 unmodified lines
113114 #: Event-handling hooks.115 self.hooks = hooks116116 # Header manipulation and defaults.117 if self.config.get('accept_gzip'):118 self.headers.update({'Accept-Encoding': 'gzip'})119117 if headers:118 headers = CaseInsensitiveDict(self.headers)119 else:120 headers = CaseInsensitiveDict()
580 unmodified lines