summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin.py b/fbin.py
index 5ca571b..46845ea 100755
--- a/fbin.py
+++ b/fbin.py
@@ -185,7 +185,7 @@ class Application(object):
# X-Sendfile handling
if settings.use_xsendfile:
- headers = [('Last-Modified', file.date.strftime(rfc1123_format))]
+ headers = [('Content-Type', mime), ('Last-Modified', file.date.strftime(rfc1123_format))]
if do_range:
headers.append(('X-Sendfile2', '{filename} {range}'.format(filename = urllib.quote(filename.encode('utf8')), range = file_range)))
if file_range.endswith('-'):