diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-22 10:06:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-22 10:06:10 +0100 |
| commit | 422be0eece2bf6ee80db1d3c21553cd82efff789 (patch) | |
| tree | 57604c446361be99eb092f35e703445260ada84a /src/lib/json_server.cc | |
| parent | e34db1b3cdb5bce5ddcb112ee03664a4e463032a (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.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" |
