1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-06 03:50:09 +02:00

Update webui.py

This commit is contained in:
jobe451 2014-04-01 00:32:11 +02:00
parent 788061bdd8
commit 98d08b165f

View file

@ -293,7 +293,7 @@ def edit(resnum):
pathismine = True pathismine = True
bottle.response.headers['Content-Disposition'] = \ bottle.response.headers['Content-Disposition'] = \
'attachment; filename="%s"' % os.path.basename(path).encode('utf-8') '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') f = open(path, 'r')
if pathismine: if pathismine:
os.unlink(path) os.unlink(path)