mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Merge pull request #815 from dnaka91/fix-validate-basic
Requests: Fix wrong validation in ValidateBasic
This commit is contained in:
commit
117dcb9567
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user