Commit 8d94b601 authored by Benjamin Fischer's avatar Benjamin Fischer

FSController: fixed session release in getfile

parent 71815188
......@@ -53,7 +53,9 @@ class FSController(AbstractController):
deleteoncomplete = deleteoncomplete and deleteoncomplete.lower() in truthy
download = download and download.lower() in truthy
self.release_session()
fs = self.get('fs')
self.release_database()
stats = fs.stat(path)
if not stat.S_ISREG(stats.st_mode):
raise cherrypy.HTTPError(404, "Not a File!")
......@@ -87,8 +89,6 @@ class FSController(AbstractController):
else:
headers['Content-Type'] = "application/octet-stream"
self.release()
callback = None
if deleteoncomplete:
def callback():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment