(trackId),this->db)){
+ track.reset();
+ }
+ }
+ catch(...){
+ // lexical cast fail
+ track.reset();
+ }
+ }
+
+ // Lets see what plugin can handle the request
+ std::string rootPath;
+ if(requester.SubPath(0)){
+ rootPath = requester.SubPath(0);
+ }
+ Server::PluginPathMap::iterator plugin = this->server.requestPlugins.find(rootPath);
+ if(plugin!=this->server.requestPlugins.end()){
+
+ // Execute the plugin
+ plugin->second->Execute(this,&requester,track.get());
+
+ }else{
+ // Send 404 error
+ std::string send("HTTP/1.1 404 OK\r\nContent-Type: text/html\r\n\r\nERROR: ");
+ send += "";
+ send += request;
+ send += "
";
+ boost::asio::write(this->socket,boost::asio::buffer(send.c_str(),send.size()));
+ }
+
+ /*
utfstring fileName;
int fileSize(0);
@@ -134,7 +173,7 @@ void Responder::ThreadLoop(){
send += "