mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-03 01:39:22 +02:00
fix #16 cannot download files with special chars
This commit is contained in:
parent
0817886f15
commit
7ce211ff78
1 changed files with 1 additions and 1 deletions
2
webui.py
2
webui.py
|
@ -304,7 +304,7 @@ def edit(resnum):
|
|||
path = xt.idoctofile(doc.ipath, doc.mimetype)
|
||||
pathismine = True
|
||||
bottle.response.headers['Content-Disposition'] = \
|
||||
'attachment; filename=%s' % os.path.basename(path)
|
||||
'attachment; filename=%s' % os.path.basename(path).encode('utf-8')
|
||||
print >> sys.stderr, "Sending %s with mimetype %s" % (path, doc.mimetype)
|
||||
f = open(path, 'r')
|
||||
if pathismine:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue