From 28c13a592ade26946497e83e800266b2302aa012 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 2 Feb 2017 11:17:03 -0700 Subject: [PATCH] fix devel-server 500s --- tools/devel-server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/devel-server.py b/tools/devel-server.py index 1fca578..a21df69 100755 --- a/tools/devel-server.py +++ b/tools/devel-server.py @@ -57,7 +57,9 @@ def mdpage(body): return page(title, mistune.markdown(body, escape=False)) -class ThreadingServer(socketserver.ThreadingMixIn, http.server.HTTPServer): +# XXX: What horrors did we unleash with our chdir shenanigans that +# makes this serve 404 and 500 when we mix in ThreadingMixIn? +class ThreadingServer(socketserver.ForkingMixIn, http.server.HTTPServer): pass