diff --git a/webserv/handler/FileHandler.cpp b/webserv/handler/FileHandler.cpp index e590a7e..a8f4313 100644 --- a/webserv/handler/FileHandler.cpp +++ b/webserv/handler/FileHandler.cpp @@ -1,7 +1,6 @@ -#include - #include // for LocationConfig #include // for ErrorHandler +#include #include // for MIMETypes #include // for URIParser #include // for NOT_FOUND, FORBIDDEN, OK @@ -81,6 +80,7 @@ std::unique_ptr FileHandler::getResponse() const case DIRECTORY_INDEX: return handleDirectory(filepath, resourceType); case NOT_FOUND: return ErrorHandler::getErrorResponse(Http::StatusCode::NOT_FOUND, location_); } + return ErrorHandler::getErrorResponse(Http::StatusCode::NOT_FOUND, location_); } FileHandler::ResourceType FileHandler::getResourceType(const std::string &path) const