From a0b85774b1b223c6a29c4d29c41287041f82973d Mon Sep 17 00:00:00 2001 From: whaffman Date: Wed, 8 Oct 2025 17:22:03 +0200 Subject: [PATCH] fix: return path --- webserv/handler/FileHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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