mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
Merge remote-tracking branch 'origin/fara' into roman
This commit is contained in:
@@ -419,8 +419,8 @@ bool ServerConfig::checkFileAndDir(location *loc)
|
||||
|
||||
if (!root.empty())
|
||||
{
|
||||
if (isDir(root) != 0)
|
||||
throw ConfigException("Directory " + root + " not found!");
|
||||
if (isDir(root) != 0 && isFile(root) != 0)
|
||||
throw ConfigException("File or directory " + root + " not found!");
|
||||
}
|
||||
if (!upload_dir.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user