summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-30 20:46:28 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-30 20:46:28 +0000
commit4bf3e6211b2483c9d6b14c3e6d9f2da142bb9ad5 (patch)
treea759f9e2198d12ff3f8fd7079b20b68adefa4356 /pages
parent2bff302c8a8eb6768313df248b06e7f725a4ae87 (diff)
downloadvdr-plugin-live-4bf3e6211b2483c9d6b14c3e6d9f2da142bb9ad5.tar.gz
vdr-plugin-live-4bf3e6211b2483c9d6b14c3e6d9f2da142bb9ad5.tar.bz2
- correct 404
Diffstat (limited to 'pages')
-rw-r--r--pages/content.ecpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/content.ecpp b/pages/content.ecpp
index cc604ba..7826113 100644
--- a/pages/content.ecpp
+++ b/pages/content.ecpp
@@ -1,5 +1,6 @@
<%pre>
#include <string>
+#include <tnt/httperror.h>
#include <tnt/httpheader.h>
#include "filecache.h"
#include "setup.h"
@@ -22,7 +23,7 @@ reply.setContentType("image/png");
FileCache::ptr_type f = LiveFileCache().get("/tmp/live/" + file);
if (f.get() == 0)
- return HTTP_NOT_FOUND;
+ throw tnt::NotFoundException(request.getUrl());
string ctime = tnt::HttpMessage::htdate(f->ctime());
string browserTime = request.getHeader(tnt::httpheader::ifModifiedSince);