core: support null strings

This commit is contained in:
Vaxry 2024-05-12 16:37:43 +01:00
parent 1281c1ed53
commit e1e94b12d5

View file

@ -74,7 +74,7 @@ std::string argsToShort(std::vector<SRequestArgument>& args, const std::string&
else if (a.wlType == "fixed")
shortt += "f";
else if (a.wlType == "string")
shortt += "s";
shortt += std::string(a.allowNull ? "?s" : "s");
else if (a.wlType == "object")
shortt += std::string(a.allowNull ? "?" : "") + "o";
else if (a.wlType == "array")