mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
add Bool case
This commit is contained in:
@@ -104,6 +104,15 @@ class toml_node
|
|||||||
*result += " ]";
|
*result += " ]";
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
case BOOL:
|
||||||
|
{
|
||||||
|
std::string *result;
|
||||||
|
if (value.boolean)
|
||||||
|
result = new std::string("true");
|
||||||
|
else
|
||||||
|
result = new std::string("false");
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return ( new std::string("Not implemented :)"));
|
return ( new std::string("Not implemented :)"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user