mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-05 19:42:05 +02:00
Update webui.py
This commit is contained in:
parent
788061bdd8
commit
98d08b165f
1 changed files with 1 additions and 1 deletions
2
webui.py
2
webui.py
|
@ -293,7 +293,7 @@ def edit(resnum):
|
|||
pathismine = True
|
||||
bottle.response.headers['Content-Disposition'] = \
|
||||
'attachment; filename="%s"' % os.path.basename(path).encode('utf-8')
|
||||
print >> sys.stderr, "Sending %s with mimetype %s" % (path, doc.mimetype)
|
||||
path = path.encode('utf-8')
|
||||
f = open(path, 'r')
|
||||
if pathismine:
|
||||
os.unlink(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue