summaryrefslogtreecommitdiffstats
path: root/logfiles-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'logfiles-controller.lua')
-rw-r--r--logfiles-controller.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/logfiles-controller.lua b/logfiles-controller.lua
index 54548be..b4c1cc4 100644
--- a/logfiles-controller.lua
+++ b/logfiles-controller.lua
@@ -18,10 +18,13 @@ mymodule.view = function (self)
end
mymodule.download = function (self)
- local filestatus = mymodule.view(self)
- local filecontent = filestatus.value.filecontent
- filecontent.label = posix.basename(filestatus.value.filename.value)
- return filecontent
+ local filedetails = mymodule.view(self)
+ local filecontent = filedetails.value.filecontent
+ if filecontent then
+ filecontent.type = "raw"
+ filecontent.label = posix.basename(filedetails.value.filename.value)
+ end
+ return filedetails
end
mymodule.tail = function (self)