fix content-disposition
This commit is contained in:
parent
075e735cd1
commit
7383bf08c4
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue