#include <iostream>
using std::string;
-using std::stringstream;
using std::cout;
using std::map;
using std::list;
action = r["action"];
}
- stringstream json;
+ SafeStringStream json;
if (action == "status") {
list<shared_ptr<Job> > jobs = JobManager::instance()->get ();
}
}
- stringstream reply;
+ SafeStringStream reply;
reply << "HTTP/1.1 200 OK\r\n"
<< "Content-Length: " << json.str().length() << "\r\n"
<< "Content-Type: application/json\r\n"