Skip to content
Myr

Default Accept header, a la curl

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 73ed950 · Browse files · 1 file+1 added−0 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−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:requests/defaults.py+1 added
24 unmodified lines
2526defaults['base_headers'] = {27 'User-Agent': 'python-requests/%s' % __version__,28 'Accept-Encoding': ', '.join(('identity', 'deflate', 'compress', 'gzip')),29 'Accept': '*/*'30}3132defaults['proxies'] = {}33defaults['verbose'] = None
6 unmodified lines