Open static files as binary

master
Ferry Boender 4 years ago
parent d548aa5751
commit afbf7ac37b
  1. 2
      src/webapp.py

@ -508,5 +508,5 @@ class ScriptFormWebApp(RequestHandler):
self.send_response(200) self.send_response(200)
self.end_headers() self.end_headers()
with open(path, "r") as static_file: with open(path, "rb") as static_file:
self.wfile.write(static_file.read()) self.wfile.write(static_file.read())

Loading…
Cancel
Save