Remove unnecessary uniqueid check for /applist
We already perform access control via client certificates
This commit is contained in:
parent
b59b885dbd
commit
6a3b7708bb
1 changed files with 0 additions and 16 deletions
|
|
@ -683,22 +683,6 @@ namespace nvhttp {
|
||||||
response->close_connection_after_response = true;
|
response->close_connection_after_response = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
auto args = request->parse_query_string();
|
|
||||||
if (args.find("uniqueid"s) == std::end(args)) {
|
|
||||||
tree.put("root.<xmlattr>.status_code", 400);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto clientID = get_arg(args, "uniqueid");
|
|
||||||
|
|
||||||
auto client = map_id_client.find(clientID);
|
|
||||||
if (client == std::end(map_id_client)) {
|
|
||||||
tree.put("root.<xmlattr>.status_code", 501);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto &apps = tree.add_child("root", pt::ptree {});
|
auto &apps = tree.add_child("root", pt::ptree {});
|
||||||
|
|
||||||
apps.put("<xmlattr>.status_code", 200);
|
apps.put("<xmlattr>.status_code", 200);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue