mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
This commit is contained in:
parent
6326278e8a
commit
f0af4c54e3
1 changed files with 1 additions and 0 deletions
|
@ -497,6 +497,7 @@ Here is an example session that uses the ``GET`` method::
|
|||
b'<!doctype html>\n<!--[if"...
|
||||
...
|
||||
>>> # Example of an invalid request
|
||||
>>> conn = http.client.HTTPSConnection("docs.python.org")
|
||||
>>> conn.request("GET", "/parrot.spam")
|
||||
>>> r2 = conn.getresponse()
|
||||
>>> print(r2.status, r2.reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue