Add support for boolean options to HTTP-based outputs

This commit is contained in:
Thulinma 2018-05-17 21:44:00 +02:00
parent bc64ad647f
commit b6f0b596b2

View file

@ -252,6 +252,8 @@ namespace Mist {
if (p[it.key()].asStringRef().size() > 0){ if (p[it.key()].asStringRef().size() > 0){
argarr[argnum++] = (char*)((*it)["option"].c_str()); argarr[argnum++] = (char*)((*it)["option"].c_str());
argarr[argnum++] = (char*)(p[it.key()].c_str()); argarr[argnum++] = (char*)(p[it.key()].c_str());
}else{
argarr[argnum++] = (char*)((*it)["option"].c_str());
} }
} }
} }