Reqeusts: Fix wrong validation in ValidateBasic

This commit is contained in:
Dominik Nakamura 2021-09-06 10:44:29 +09:00
parent a9d86ce35c
commit d20c0d0da7
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

View File

@ -24,7 +24,7 @@ const bool Request::Contains(const std::string keyName) const
const bool Request::ValidateBasic(const std::string keyName, RequestStatus::RequestStatus &statusCode, std::string &comment) const
{
if (HasRequestData) {
if (!HasRequestData) {
statusCode = RequestStatus::MissingRequestData;
comment = "Your request data is missing or invalid (non-object)";
return false;