Switch to side-by-side view
--- a/webui.py +++ b/webui.py @@ -293,7 +293,7 @@ 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)