Skip to content
Myr

Fix for user-agent setting

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

authored by Pavel Dmitriev · committed by Pavel Dmitriev · parent 5333ec9 · Browse files · 1 file+8 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+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:requests/utils.py+8 added-1 removed
537 unmodified lines
538 elif _implementation == 'IronPython':539 _implementation_version = platform.python_version() # Complete Guess540 else:541 _implementation_version = 'Unknown'542 543 try:544 p_system = platform.system()545 p_release = platform.release()546 except IOError:547 p_system = 'Unknown'548 p_release = 'Unknown'549550 return " ".join([551 'python-requests/%s' % __version__,552 '%s/%s' % (_implementation, _implementation_version),546 '%s/%s' % (platform.system(), platform.release()),553 '%s/%s' % (p_system, p_release),554 ])555556557def parse_header_links(value):
66 unmodified lines