summaryrefslogtreecommitdiff
path: root/src/lib/json_server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 10:06:10 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 10:06:10 +0100
commit422be0eece2bf6ee80db1d3c21553cd82efff789 (patch)
tree57604c446361be99eb092f35e703445260ada84a /src/lib/json_server.cc
parente34db1b3cdb5bce5ddcb112ee03664a4e463032a (diff)
Rename SafeStringStream -> locked_stringstream. Bump deps for removal of stringstream.
Diffstat (limited to 'src/lib/json_server.cc')
-rw-r--r--src/lib/json_server.cc4
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"