diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-02-18 23:55:00 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-02-18 23:55:00 +0100 |
commit | 9f9645356bcd89a3ee93b9db39093c627eadf435 (patch) | |
tree | 6db5e6e581f858ce4723f58632122835c99fa374 | |
parent | baee8206b8338b1d4a9712eeec916d39da633ba6 (diff) |
Send Content-Type when using X-Sendfile.
-rwxr-xr-x | fbin.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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('-'): |