Skip to content

Commit

Permalink
kill accept_gzip config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Oct 23, 2011
1 parent f0fe8b9 commit 0ee6c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
12 changes: 1 addition & 11 deletions requests/defaults.py
Expand Up @@ -28,21 +28,11 @@
'Accept-Encoding': ', '.join([ 'identity', 'deflate', 'compress', 'gzip' ]),
}


# defaults['accept_gzip'] = True
defaults['proxies'] = {}
defaults['verbose'] = None
defaults['timeout'] = None
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
5 changes: 1 addition & 4 deletions requests/models.py
@@ -1,3 +1,4 @@

# -*- coding: utf-8 -*-

"""
Expand Down Expand Up @@ -113,10 +114,6 @@ def __init__(self,
#: 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:
Expand Down

0 comments on commit 0ee6c1f

Please sign in to comment.