Fix minor bug in httplib example. Found by Alex MacAulay on docs@.
This commit is contained in:
parent
3c1271142d
commit
d277a56af3
|
@ -649,7 +649,7 @@ request using http.client::
|
|||
>>> conn = http.client.HTTPConnection("localhost", 8080)
|
||||
>>> conn.request("PUT", "/file", BODY)
|
||||
>>> response = conn.getresponse()
|
||||
>>> print(resp.status, response.reason)
|
||||
>>> print(response.status, response.reason)
|
||||
200, OK
|
||||
|
||||
.. _httpmessage-objects:
|
||||
|
|
Loading…
Reference in New Issue