Kaydet (Commit) 62e95802 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 0b9a9fd3
...@@ -153,3 +153,4 @@ if __name__ == '__main__': ...@@ -153,3 +153,4 @@ if __name__ == '__main__':
import webbrowser import webbrowser
webbrowser.open('http://localhost:8000/xyz?abc') webbrowser.open('http://localhost:8000/xyz?abc')
httpd.handle_request() # serve one request, then exit 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