From 7383bf08c4b450a75b16a93badf1bdf082f16fa1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 1 Mar 2014 14:17:23 +0100 Subject: [PATCH] fix content-disposition --- ox/django/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/django/http.py b/ox/django/http.py index a3f773c..1fda91a 100644 --- a/ox/django/http.py +++ b/ox/django/http.py @@ -44,7 +44,7 @@ def HttpFileResponse(path, content_type=None, filename=None): if filename: if isinstance(filename, unicode): filename = filename.encode('utf-8') - response['Content-Disposition'] = 'attachment; filename*=UTF=8''%s' % quote(filename) + response['Content-Disposition'] = "attachment; filename*=UTF=8''%s" % quote(filename) response['Expires'] = datetime.strftime(datetime.utcnow() + timedelta(days=1), "%a, %d-%b-%Y %H:%M:%S GMT")