mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Closes #19258: close WSGI server after handling request in demo code.
This commit is contained in:
parent
0079ffc092
commit
d98d6cb451
1 changed files with 1 additions and 0 deletions
|
|
@ -155,3 +155,4 @@ if __name__ == '__main__':
|
|||
import webbrowser
|
||||
webbrowser.open('http://localhost:8000/xyz?abc')
|
||||
httpd.handle_request() # serve one request, then exit
|
||||
httpd.server_close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue