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" }
|
||||
root = "/nfs/homes/mmoussou"
|
||||
upload_path = "/etc/webserv/up"
|
||||
cgi.go = "/bin/go"
|
||||
cgi = { ".py", ".go" }
|
||||
|
||||
[server.location./redir]
|
||||
redirect = "https://kanel.ovh"
|
||||
|
@ -28,7 +28,7 @@ std::vector<std::string> *Route::_parseCGI(toml::ANode *table) {
|
||||
else {
|
||||
std::stringstream str;
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user