Skip to content
Myr

[remove] remove invalid field in docete

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

Remove 'Connection': 'close' field in 'headers'

authored by Alessio Izzo · committed by GitHub · parent c19c394 · 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/__init__.py+1 added-1 removed
22 unmodified lines
2324 >>> payload = dict(key1='value1', key2='value2')25 >>> r = requests.post('https://httpbin.org/post', data=payload)26 >>> r.json()27 {'args': {}, 'data': '', 'files': {}, 'form': {'key1': 'value1', 'key2': 'value2'}, 'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'close', 'Content-Length': '23', 'Content-Type': 'application/x-www-form-urlencoded', 'Host': 'httpbin.org', 'User-Agent': 'python-requests/...'}, 'json': None, 'origin': '...', 'url': 'https://httpbin.org/post'}27 {'args': {}, 'data': '', 'files': {}, 'form': {'key1': 'value1', 'key2': 'value2'}, 'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Content-Length': '23', 'Content-Type': 'application/x-www-form-urlencoded', 'Host': 'httpbin.org', 'User-Agent': 'python-requests/...'}, 'json': None, 'origin': '...', 'url': 'https://httpbin.org/post'}2829The other HTTP methods are supported - see `requests.api`. Full documentation30is at <http://python-requests.org>.31
93 unmodified lines