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

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
fs = self.get('fs')
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):
headers['Content-Type'] = "application/octet-stream"
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