mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🔨」 fix(cgi_config): fixed error print
also fixed test.toml config file
This commit is contained in:
@ -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"
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user