diff options
author | mattack108 <matt.lenc@gmail.com> | 2013-01-15 15:12:13 +0000 |
---|---|---|
committer | mattack108 <matt.lenc@gmail.com> | 2013-01-15 15:12:13 +0000 |
commit | ce103cd4391cfee5096c9891a15403cf2493121a (patch) | |
tree | 425dcc4da048e7eb70f2aed05300c96ba8427af7 /wkhtmltopdf/views.py | |
parent | 461178373f0b9f3d552bc0b2a546a4cd35599923 (diff) | |
download | django-wkhtmltopdf-ce103cd4391cfee5096c9891a15403cf2493121a.tar.gz django-wkhtmltopdf-ce103cd4391cfee5096c9891a15403cf2493121a.tar.bz2 django-wkhtmltopdf-ce103cd4391cfee5096c9891a15403cf2493121a.zip |
Remove double quotes from filename as it's done by content_disposition_filename
Diffstat (limited to 'wkhtmltopdf/views.py')
-rw-r--r-- | wkhtmltopdf/views.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py index 0fa0b02..7974fc0 100644 --- a/wkhtmltopdf/views.py +++ b/wkhtmltopdf/views.py @@ -30,10 +30,9 @@ class PDFResponse(HttpResponse): def set_filename(self, filename, show_content_in_browser): self.filename = filename if filename: - # mattl: file name surrounded by double qoutes, per RFC2231 - fileheader = 'attachment; filename="{0}"' + fileheader = 'attachment; filename={0}' if show_content_in_browser: - fileheader = 'inline; filename="{0}"' + fileheader = 'inline; filename={0}' filename = content_disposition_filename(filename) header_content = fileheader.format(filename) |