fix issue 2029: response.stream bug with spaces in filename

This commit is contained in:
ilvalle
2014-12-20 17:47:55 +01:00
parent 5ea654ed06
commit 207f53fd6f

View File

@@ -551,7 +551,7 @@ class Response(Storage):
else:
attname = filename
headers["Content-Disposition"] = \
"attachment;filename=%s" % attname
'attachment;filename="%s"' % attname
if not request:
request = current.request