🔨」 fix(cgi_config): fixed error print

also fixed test.toml config file
This commit is contained in:
2025-05-26 17:29:02 +02:00
parent e02b475a73
commit cccc25fba1
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ index = "index.html"
methods = { "GET", "POST" } methods = { "GET", "POST" }
root = "/nfs/homes/mmoussou" root = "/nfs/homes/mmoussou"
upload_path = "/etc/webserv/up" upload_path = "/etc/webserv/up"
cgi.go = "/bin/go" cgi = { ".py", ".go" }
[server.location./redir] [server.location./redir]
redirect = "https://kanel.ovh" redirect = "https://kanel.ovh"

View File

@ -27,8 +27,8 @@ std::vector<std::string> *Route::_parseCGI(toml::ANode *table) {
cgi->push_back(*static_cast<std::string *>((*it)->getValue())); cgi->push_back(*static_cast<std::string *>((*it)->getValue()));
else { else {
std::stringstream str; std::stringstream str;
str << "Was expecting a : " << toml::nodeTypeToStr(toml::STRING); str << "Was expecting a: " << toml::nodeTypeToStr(toml::STRING);
str << " but got a : " << toml::nodeTypeToStr((*it)->type()); str << ", but got a: " << toml::nodeTypeToStr((*it)->type());
_log->warn(str.str()); _log->warn(str.str());
} }
} }