fix: clarify TODO comment regarding directory handling in FileHandler
This commit is contained in:
parent
f147b01902
commit
0f9a1b0029
@ -73,7 +73,7 @@ void FileHandler::handleDirectory(const std::string &dirpath, ResourceType type)
|
|||||||
{
|
{
|
||||||
Log::debug("Requested path is a directory: " + dirpath);
|
Log::debug("Requested path is a directory: " + dirpath);
|
||||||
// ErrorHandler::createErrorResponse(Http::StatusCode::FORBIDDEN, response_, config_);
|
// ErrorHandler::createErrorResponse(Http::StatusCode::FORBIDDEN, response_, config_);
|
||||||
// TODO: This doesn't trigger for some reason :p
|
// TODO: This doesn't trigger for some reason :p (I Know why, i hacked the index in uri.cpp)
|
||||||
response_.setBody(AutoIndex::generate(dirpath));
|
response_.setBody(AutoIndex::generate(dirpath));
|
||||||
response_.setStatus(Http::StatusCode::OK);
|
response_.setStatus(Http::StatusCode::OK);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user