From afbf7ac37b6ffa061c443dc11c355120f30473a5 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 7 Sep 2020 17:56:13 +0200 Subject: [PATCH] Open static files as binary --- src/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webapp.py b/src/webapp.py index f915eec..ba3df08 100644 --- a/src/webapp.py +++ b/src/webapp.py @@ -508,5 +508,5 @@ class ScriptFormWebApp(RequestHandler): self.send_response(200) self.end_headers() - with open(path, "r") as static_file: + with open(path, "rb") as static_file: self.wfile.write(static_file.read())