Commit 10655cb2 authored by Georg Brandl's avatar Georg Brandl

Closes #19258: close WSGI server after handling request in demo code.

parent 46e3c968
......@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment