From 136a2704733c6a0726939f9bd4e86d05e1db2bb4 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 7 Jun 2021 01:11:20 -0700 Subject: [PATCH] Request: Fix missing requestData check --- src/requesthandler/rpc/Request.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requesthandler/rpc/Request.h b/src/requesthandler/rpc/Request.h index cb9b12d4..d95c0c32 100644 --- a/src/requesthandler/rpc/Request.h +++ b/src/requesthandler/rpc/Request.h @@ -11,7 +11,7 @@ struct Request const bool HasRequestData() const { - return RequestData.is_object(); + return RequestData.is_object() && !RequestData.empty(); } const bool ValidateBasic(const std::string keyName, RequestStatus::RequestStatus &statusCode, std::string &comment) const;