[gen] pod field: bugfix: download a generated or frozen pod result.

This commit is contained in:
Gaetan Delannay 2014-10-03 20:27:54 +02:00
parent 1455a74056
commit d9d93a650b
2 changed files with 7 additions and 3 deletions

View file

@ -731,7 +731,10 @@ class Pod(Field):
# attachment?
mailing = rq.get('mailing')
if not mailing:
res.writeResponse(rq.RESPONSE)
# With disposition=inline, Google Chrome and IE may launch a PDF
# viewer that triggers one or many additional crashing HTTP GET
# requests.
res.writeResponse(rq.RESPONSE, disposition='attachment')
return
else:
# Send the email(s).