From 9f9645356bcd89a3ee93b9db39093c627eadf435 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 18 Feb 2012 23:55:00 +0100 Subject: Send Content-Type when using X-Sendfile. --- fbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('-'): -- cgit v1.2.3