summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-02-18 23:55:00 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-02-18 23:55:00 +0100
commit9f9645356bcd89a3ee93b9db39093c627eadf435 (patch)
tree6db5e6e581f858ce4723f58632122835c99fa374
parentbaee8206b8338b1d4a9712eeec916d39da633ba6 (diff)
Send Content-Type when using X-Sendfile.
-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('-'):