Skip to content
Myr

change default accept-encoding

Before adoption: this commit came in with the history the project adopted, so no landing records it.

http://blogs.operationaldynamics.com/andrew/software/research/testing-re stful-apis-with-httpie

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 6cc24a1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/defaults.py+1 added-1 removed
30 unmodified lines
31defaults = dict()3233defaults['base_headers'] = {34 'User-Agent': default_user_agent(),35 'Accept-Encoding': ', '.join(('identity', 'deflate', 'compress', 'gzip')),35 'Accept-Encoding': ', '.join(('gzip', 'deflate', 'compress')),36 'Accept': '*/*'37}3839defaults['verbose'] = None
11 unmodified lines