diff options
Diffstat (limited to 'src/lib/json_server.cc')
| -rw-r--r-- | src/lib/json_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index 0006201e6..4af133875 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -151,7 +151,7 @@ JSONServer::request (string url, shared_ptr<tcp::socket> socket) action = r["action"]; } - SafeStringStream json; + locked_stringstream json; if (action == "status") { list<shared_ptr<Job> > jobs = JobManager::instance()->get (); @@ -187,7 +187,7 @@ JSONServer::request (string url, shared_ptr<tcp::socket> socket) } } - SafeStringStream reply; + locked_stringstream reply; reply << "HTTP/1.1 200 OK\r\n" << "Content-Length: " << json.str().length() << "\r\n" << "Content-Type: application/json\r\n" |
