Skip to content

Commit

Permalink
remove u8path (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Jan 16, 2024
1 parent 595a530 commit 687f8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cinatra/coro_http_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "\\", "/");
}
Expand Down

0 comments on commit 687f8b8

Please sign in to comment.