mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
use empty as we always init the var
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ bool webAPI::submit(const int &reqType, const int &getPost, const int &respType)
|
||||
{
|
||||
if (reqType == DTYPE::JSON) // json request
|
||||
{
|
||||
if (!this->requestData.is_null())
|
||||
if (!this->requestData.empty())
|
||||
{
|
||||
// serialize our data into sRequest
|
||||
this->sRequest = this->requestData.dump();
|
||||
|
||||
Reference in New Issue
Block a user