diff options
Diffstat (limited to 'rotord/rotord.cpp')
| -rwxr-xr-x | rotord/rotord.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp index f9e1d21..e04ba30 100755 --- a/rotord/rotord.cpp +++ b/rotord/rotord.cpp @@ -171,9 +171,10 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS } else { bool found=false; - for (auto& task: manager.taskList()) + for (auto& task: manager.taskList()) //c++11 { if(task->name()==command[0]) { + //valid session command found=true; if (command.size()==1) { //just invoking sID @@ -186,6 +187,17 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS content="<status>Rotor: render context invoked with no command</status>\n"; } } + else { + if (command[0]=="audio") { + if (request.getMethod()=="PUT") { + //get audio file location and initiate analysis + stringstream str; + str << request.stream(); + content << str; + } + } + + } } } if (!found) { |
