Skip to content

Commit

Permalink
Use http.server.ThreadingHTTPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
kkinder committed Aug 17, 2024
1 parent a5262bf commit f495024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def end_headers(self):
args = parser.parse_args()

os.chdir(project_path)
httpd = server.HTTPServer((args.host, args.port), Handler)
httpd = server.ThreadingHTTPServer((args.host, args.port), Handler)
print(f"Serving at port {args.host or '*'}:{args.port}")
httpd.serve_forever()

0 comments on commit f495024

Please sign in to comment.