From 77166d296967c1ddf602d016454974e046232cb4 Mon Sep 17 00:00:00 2001 From: CJ Date: Fri, 6 Jun 2014 10:37:04 -0400 Subject: [PATCH] refs #87 Quotes around ascii filename, not utf-8 --- django_downloadview/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_downloadview/response.py b/django_downloadview/response.py index 3727934..3573461 100644 --- a/django_downloadview/response.py +++ b/django_downloadview/response.py @@ -79,7 +79,7 @@ def content_disposition(filename): if ascii_filename == utf8_filename: # ASCII only. return "attachment; filename=\"{ascii}\"".format(ascii=ascii_filename) else: - return "attachment; filename=\"{ascii}\"; filename*=UTF-8''\"{utf8}\"" \ + return "attachment; filename=\"{ascii}\"; filename*=UTF-8''{utf8}" \ .format(ascii=ascii_filename, utf8=utf8_filename)