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

This commit is contained in:
Georg Brandl 2013-10-14 16:52:13 +02:00
parent 0b9a9fd3a0
commit 62e9580219
1 changed files with 1 additions and 0 deletions

View File

@ -153,3 +153,4 @@ if __name__ == '__main__':
import webbrowser
webbrowser.open('http://localhost:8000/xyz?abc')
httpd.handle_request() # serve one request, then exit
httpd.server_close()