Skip to content

Commit 687f8b8

Browse files
authored
remove u8path (#490)
1 parent 595a530 commit 687f8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cinatra/coro_http_server.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ class coro_http_server {
228228
}
229229

230230
std::filesystem::path router_path =
231-
std::filesystem::u8path(static_dir_router_path_);
231+
std::filesystem::path(static_dir_router_path_);
232232

233233
std::string uri;
234234
for (auto &file : files_) {
235235
auto relative_path =
236-
std::filesystem::u8path(file.substr(static_dir_.length())).string();
236+
std::filesystem::path(file.substr(static_dir_.length())).string();
237237
if (size_t pos = relative_path.find('\\') != std::string::npos) {
238238
replace_all(relative_path, "\\", "/");
239239
}

0 commit comments

Comments
 (0)