fixed cache expiration in grid downloads, thanks Niphlod

This commit is contained in:
mdipierro committed 2013-02-04 15:12:15 -06:00
1 parent 8f76efeb2f
commit 9069f06857
4 files changed
+23 -23

No files matched your search

+4 -4
View File
@@ -308,8 +308,8 @@ class Response(Storage):
chunk_size=DEFAULT_CHUNK_SIZE,
request=None,
attachment=False,
filename=None,
):
filename=None
):
"""
if a controller function::
@@ -403,8 +403,8 @@ class Response(Storage):
raise HTTP(404)
headers = self.headers
headers['Content-Type'] = contenttype(name)
if download_filename == None:
download_filename = filename
if download_filename == None:
download_filename = filename
if attachment:
headers['Content-Disposition'] = \
'attachment; filename="%s"' % download_filename.replace('"','\"')