Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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