summaryrefslogtreecommitdiff
path: root/vdr-smarttvweb
diff options
context:
space:
mode:
Diffstat (limited to 'vdr-smarttvweb')
-rw-r--r--vdr-smarttvweb/httpresource.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vdr-smarttvweb/httpresource.c b/vdr-smarttvweb/httpresource.c
index bd83d80..7755ff0 100644
--- a/vdr-smarttvweb/httpresource.c
+++ b/vdr-smarttvweb/httpresource.c
@@ -347,6 +347,14 @@ int cHttpResource::processRequest() {
if (mPath.compare("/widget.conf") == 0) {
mPath = mFactory->getConfigDir() + "/widget.conf";
+
+ if (stat(mPath.c_str(), &statbuf) < 0) {
+ sendError(404, "Not Found", NULL, "File not found.");
+ return OKAY;
+ }
+ mFileSize = statbuf.st_size;
+ mContentType = SINGLEFILE;
+ return sendFile(&statbuf);
}
if (mPath.size() > 8) {