From 19ab6aef372d19659e786c6ed5c7948563558034 Mon Sep 17 00:00:00 2001 From: whaffman Date: Wed, 29 Oct 2025 12:11:59 +0100 Subject: [PATCH] fix: update URI generation to avoid hardcoded authority --- webserv/handler/URI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserv/handler/URI.cpp b/webserv/handler/URI.cpp index 08fbc6a..f7b9f8c 100644 --- a/webserv/handler/URI.cpp +++ b/webserv/handler/URI.cpp @@ -236,7 +236,7 @@ std::string URI::getUriForPath(const std::string &path) const } Log::debug("Generating URI for path", {{"path", path},{"trimmedDir", trimmedLocation}, {"trimmedPath", trimmedPath}, {"Authority", authority_}}); - std::string result = "http://" + authority_; + std::string result = "http://" + authority_; //TODO this should not be hardcoded... result = FileUtils::joinPath(result, trimmedLocation); return FileUtils::joinPath(result, trimmedPath); }