mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
kill accept_gzip config
This commit is contained in:
+1
-11
@@ -28,8 +28,6 @@ defaults['base_headers'] = {
|
||||
'Accept-Encoding': ', '.join([ 'identity', 'deflate', 'compress', 'gzip' ]),
|
||||
}
|
||||
|
||||
|
||||
# defaults['accept_gzip'] = True
|
||||
defaults['proxies'] = {}
|
||||
defaults['verbose'] = None
|
||||
defaults['timeout'] = None
|
||||
@@ -37,12 +35,4 @@ defaults['max_redirects'] = 30
|
||||
defaults['decode_unicode'] = True
|
||||
defaults['timeout_fallback'] = True
|
||||
# defaults['keep_alive'] = True
|
||||
# defaults['max_connections'] = 10
|
||||
|
||||
|
||||
# defaults['hooks'] = {
|
||||
# 'args': list(),
|
||||
# 'pre_request': list(),
|
||||
# 'post_request': list(),
|
||||
# 'response': list()
|
||||
# }
|
||||
# defaults['max_connections'] = 10
|
||||
+1
-4
@@ -1,3 +1,4 @@
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
@@ -113,10 +114,6 @@ class Request(object):
|
||||
#: Event-handling hooks.
|
||||
self.hooks = hooks
|
||||
|
||||
# Header manipulation and defaults.
|
||||
if self.config.get('accept_gzip'):
|
||||
self.headers.update({'Accept-Encoding': 'gzip'})
|
||||
|
||||
if headers:
|
||||
headers = CaseInsensitiveDict(self.headers)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user