added a check for the presence of the “services” field in the response body of the getServicesList() function
This commit is contained in:
parent
e4e433bff8
commit
793abd61ea
4 changed files with 12 additions and 3 deletions
|
|
@ -377,6 +377,13 @@ ErrorCode ApiController::getServicesList(QByteArray &responseBody)
|
|||
|
||||
auto errorCode = checkErrors(sslErrors, reply);
|
||||
reply->deleteLater();
|
||||
|
||||
if (errorCode == ErrorCode::NoError) {
|
||||
if (!responseBody.contains("services")) {
|
||||
return ErrorCode::ApiServicesMissingError;
|
||||
}
|
||||
}
|
||||
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue