diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-03-25 03:57:04 (GMT) |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2017-07-11 00:11:33 (GMT) |
commit | 5ddfb6a472539c3a01a6f8e6d8fa1cb1013fc4f9 (patch) | |
tree | 078811d4b6f866a9d2f8b0ab77e37230d149c390 /Source/cmServer.cxx | |
parent | d4f5d35ca491ede92003b26a7d0eb06aea3a2bbb (diff) | |
download | CMake-5ddfb6a472539c3a01a6f8e6d8fa1cb1013fc4f9.zip CMake-5ddfb6a472539c3a01a6f8e6d8fa1cb1013fc4f9.tar.gz CMake-5ddfb6a472539c3a01a6f8e6d8fa1cb1013fc4f9.tar.bz2 |
server: Add connection as part of a request
Diffstat (limited to 'Source/cmServer.cxx')
-rw-r--r-- | Source/cmServer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmServer.cxx b/Source/cmServer.cxx index 03e0115..61ebba3 100644 --- a/Source/cmServer.cxx +++ b/Source/cmServer.cxx @@ -83,7 +83,7 @@ void cmServer::ProcessRequest(cmConnection* connection, debug->PrintStatistics = debugValue["showStats"].asBool(); } - const cmServerRequest request(this, value[kTYPE_KEY].asString(), + const cmServerRequest request(this, connection, value[kTYPE_KEY].asString(), value[kCOOKIE_KEY].asString(), value); if (request.Type == "") { @@ -323,7 +323,7 @@ void cmServer::WriteProgress(const cmServerRequest& request, int min, obj[kPROGRESS_MAXIMUM_KEY] = max; obj[kPROGRESS_CURRENT_KEY] = current; - this->WriteJsonObject(obj, nullptr); + this->WriteJsonObject(request.Connection, obj, nullptr); } void cmServer::WriteMessage(const cmServerRequest& request, @@ -343,7 +343,7 @@ void cmServer::WriteMessage(const cmServerRequest& request, obj[kTITLE_KEY] = title; } - WriteJsonObject(obj, nullptr); + WriteJsonObject(request.Connection, obj, nullptr); } void cmServer::WriteParseError(cmConnection* connection, |