From fc96324fc266bef30027332d47f34dd09a2f3b66 Mon Sep 17 00:00:00 2001 From: thlo Date: Thu, 25 Jul 2013 20:37:31 +0200 Subject: Allow HTTP access to Video Dir. LocalTime fix. Adding Timers. Cleanups. Update is isServing to prevent shutdown. --- httpresource.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'httpresource.c') diff --git a/httpresource.c b/httpresource.c index e29358b..545e7ba 100755 --- a/httpresource.c +++ b/httpresource.c @@ -455,6 +455,12 @@ int cHttpResource::processRequest() { ok_to_serve = true; } + if (mPath.compare(0, strlen(VideoDirectory), VideoDirectory) == 0) { + *(mLog->log())<< DEBUGPREFIX + << " Found video dir request. serving " << mPath << endl; + ok_to_serve = true; + } + if (stat(mPath.c_str(), &statbuf) < 0) { // checking, whether the file or directory exists *(mLog->log())<< DEBUGPREFIX -- cgit v1.2.3