mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Fix minor bug in httplib example. Found by Alex MacAulay on docs@.
This commit is contained in:
parent
3c1271142d
commit
d277a56af3
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ request using http.client::
|
||||||
>>> conn = http.client.HTTPConnection("localhost", 8080)
|
>>> conn = http.client.HTTPConnection("localhost", 8080)
|
||||||
>>> conn.request("PUT", "/file", BODY)
|
>>> conn.request("PUT", "/file", BODY)
|
||||||
>>> response = conn.getresponse()
|
>>> response = conn.getresponse()
|
||||||
>>> print(resp.status, response.reason)
|
>>> print(response.status, response.reason)
|
||||||
200, OK
|
200, OK
|
||||||
|
|
||||||
.. _httpmessage-objects:
|
.. _httpmessage-objects:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue