Skip to content
Snippets Groups Projects
Commit 18e53b9e authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

proxyserver: send correct value id to client

when searching for a value to put, the proxy server returned
a json with value->id = 0, causing the client to not refreshing
correctly the values later (when timeout-ing, the value to refresh
is not found).
parent 0b537938
Branches
Tags
No related merge requests found
...@@ -1176,7 +1176,7 @@ DhtProxyServer::put(restinio::request_handle_t request, ...@@ -1176,7 +1176,7 @@ DhtProxyServer::put(restinio::request_handle_t request,
} }
} }
auto response = initHttpResponse(request->create_response()); auto response = initHttpResponse(request->create_response());
response.append_body(Json::writeString(jsonBuilder_, value->toJson()) + "\n"); response.append_body(Json::writeString(jsonBuilder_, pp.second.value->toJson()) + "\n");
return response.done(); return response.done();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment