stream allows for optional headers and fixed a formtyle bug, thanks Anthony

This commit is contained in:
mdipierro
2012-09-10 17:29:41 -05:00
parent 830b6f120d
commit 566f030902
3 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -278,7 +278,8 @@ class Response(Storage):
chunk_size = DEFAULT_CHUNK_SIZE,
request=None,
attachment=False,
filename=None
filename=None,
headers=None
):
"""
if a controller function::
@@ -298,7 +299,7 @@ class Response(Storage):
default to the last request argument otherwise)
"""
headers = self.headers
headers = headers if headers is not None else self.headers
# for attachment settings and backward compatibility
keys = [item.lower() for item in headers]
if attachment: