aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/main.py b/backend/main.py
index bbb853d..085599c 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -5,8 +5,8 @@ import os
import sqlite3
import mimetypes
-def playout(filename, content = "text/html"):
- return ["", [('Content-Type', content if content else "application/binary"), ("X-Accel-Redirect", filename)], None]
+def playout(filename, content = "application/octet-stream"):
+ return ["", [('Content-Type', content), ("X-Accel-Redirect", filename)], None]
def home():
return ["", [('Content-Type','text/html'), ("Location", config.homepage)], "302 Home"]
@@ -92,7 +92,7 @@ def route(path, env, session, post):
if len(path) > 1 and path[1] == "preview" and session["display"] == "gallery":
return playout("/data/" + target_filename_internal(session, "preview/" + path[2]), mimetypes.guess_type(path[2])[0])
- return playout("/interface/listing.htm")
+ return playout("/interface/listing.htm", "text/html")
def handle_request(env, response):
path = env.get('PATH_INFO', '').lstrip('/').split('/')