Skip to content
Myr

Include the system name and version in the default user agent

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

authored by Donald Stufft · committed by Donald Stufft · parent 982268a · 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
58 unmodified lines
59defaults['base_headers'] = {60 'User-Agent': " ".join([61 'python-requests/%s' % __version__,62 '%s/%s' % (_implementation, _implementation_version),63 '%s/%s' % (platform.system(), platform.release()),64 ]),65 'Accept': '*/*'66}67
12 unmodified lines