From 687f8b893055f208497c0f26dcce7cf0dfde729b Mon Sep 17 00:00:00 2001 From: qicosmos Date: Tue, 16 Jan 2024 10:18:13 +0800 Subject: [PATCH] remove u8path (#490) --- include/cinatra/coro_http_server.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cinatra/coro_http_server.hpp b/include/cinatra/coro_http_server.hpp index 13894086..03934e1e 100644 --- a/include/cinatra/coro_http_server.hpp +++ b/include/cinatra/coro_http_server.hpp @@ -228,12 +228,12 @@ class coro_http_server { } std::filesystem::path router_path = - std::filesystem::u8path(static_dir_router_path_); + std::filesystem::path(static_dir_router_path_); std::string uri; for (auto &file : files_) { auto relative_path = - std::filesystem::u8path(file.substr(static_dir_.length())).string(); + std::filesystem::path(file.substr(static_dir_.length())).string(); if (size_t pos = relative_path.find('\\') != std::string::npos) { replace_all(relative_path, "\\", "/"); }