mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
fix: directory file parameter
This commit is contained in:
@@ -279,7 +279,7 @@ std::string Response::getFullURI(void)
|
|||||||
_upload_dir = _location->uploadDir + tmp;
|
_upload_dir = _location->uploadDir + tmp;
|
||||||
tmp = _location->root + tmp;
|
tmp = _location->root + tmp;
|
||||||
}
|
}
|
||||||
if (_request.isDir(tmp) == 0)
|
if (_request.isDir(tmp) == 0 && _request.getURI() == _location->location)
|
||||||
{
|
{
|
||||||
if (_location->directoryFile.empty() || _Autoindex)
|
if (_location->directoryFile.empty() || _Autoindex)
|
||||||
ret = tmp;
|
ret = tmp;
|
||||||
@@ -292,6 +292,7 @@ std::string Response::getFullURI(void)
|
|||||||
ret = tmp;
|
ret = tmp;
|
||||||
if (_upload_dir.empty())
|
if (_upload_dir.empty())
|
||||||
_upload_dir = ret;
|
_upload_dir = ret;
|
||||||
|
DBOUT << WARNING << getDebugTime() << OKCYAN << " [fullURI: " << ret << " ]" << ENDL;
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user