Refactor serve_overview code a bit
Compare changes
+ 77
− 104
@@ -2,10 +2,10 @@ import argparse
@@ -20,34 +20,11 @@ except:
@@ -57,98 +34,94 @@ class RequestHandler(BaseHTTPRequestHandler):
Some fairly simple changes to make the serve_overview
code easier to follow:
pdf_queue
mechanism and pdf?<uuid>
endpoint - this hasn't been used since February 2020 (61f9d099).Content-Length
header for static files - this gives nicer feedback in the browser when e.g. opening a large PDF.Installed on max-exfl017, checked the overview page, darks overview, and opening PDF files.