fix: linux tester

This commit is contained in:
Talyx
2022-02-10 00:36:34 +03:00
parent adbe832b98
commit 9b3b3bebca
4 changed files with 19 additions and 25 deletions

View File

@@ -214,7 +214,7 @@ std::string Response::getFullURI(void)
ret = tmp;
else
{
ret = tmp + _location->directoryFile;
ret = tmp + "/" + _location->directoryFile;
}
}
else
@@ -256,8 +256,10 @@ bool Response::allowedMethod(std::string &method)
{
if (*it == method)
return (true);
DBOUT << BLUE << *it << ENDL;
it++;
}
DBOUT << "location " << _location->location << ENDL;
_code = 405;
return (false);