mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
return 200 instead of 404 when test is fetched
This commit is contained in:
parent
dc3d899e70
commit
69b1da2e1d
1 changed files with 3 additions and 1 deletions
|
@ -1312,7 +1312,7 @@ unsigned int SqliteNetworkController::_doCPGet(
|
|||
} else if ((path[2] == "test")&&(path.size() >= 4)) {
|
||||
|
||||
std::map< uint64_t,_CircuitTestEntry >::iterator cte(_circuitTests.find(Utils::hexStrToU64(path[3].c_str())));
|
||||
if (cte != _circuitTests.end()) {
|
||||
if ((cte != _circuitTests.end())&&(cte->second.test)) {
|
||||
|
||||
responseBody = "[";
|
||||
responseBody.append(cte->second.jsonResults);
|
||||
|
@ -1323,6 +1323,8 @@ unsigned int SqliteNetworkController::_doCPGet(
|
|||
::free((void *)cte->second.test);
|
||||
_circuitTests.erase(cte);
|
||||
|
||||
return 200;
|
||||
|
||||
} // else 404
|
||||
|
||||
} // else 404
|
||||
|
|
Loading…
Add table
Reference in a new issue