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 0079ffc092
commit d98d6cb451
1 changed files with 1 additions and 0 deletions

View File

@ -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()