commit | 62e95802199c354833ec130b332e44333b8996aa | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Oct 14 16:52:13 2013 +0200 |
committer | Georg Brandl <georg@python.org> | Mon Oct 14 16:52:13 2013 +0200 |
tree | 249ce23d4f77946444634928cd2cb6e9c2f9315c | |
parent | 0b9a9fd3a003220721dc3f05c8b0de7308278431 [diff] |
Closes #19258: close WSGI server after handling request in demo code.
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py index e6a385b..12119ea 100644 --- a/Lib/wsgiref/simple_server.py +++ b/Lib/wsgiref/simple_server.py
@@ -153,3 +153,4 @@ import webbrowser webbrowser.open('http://localhost:8000/xyz?abc') httpd.handle_request() # serve one request, then exit + httpd.server_close()