Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jul 2, 2024
1 parent 48080a8 commit 185ff73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cinatra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,10 +1176,10 @@ TEST_CASE("test coro_http_client upload") {
[](coro_http_request &req,
coro_http_response &resp) -> async_simple::coro::Lazy<void> {
std::string_view filename = req.get_header_value("filename");
std::size_t sz;
uint64_t sz;
auto oldpath = fs::current_path().append(filename);
std::string newpath =
fs::current_path().append("server_" + std::string{filename});
fs::current_path().append("server_" + std::string{filename}).string();
std::ofstream file(newpath, std::ios::binary);
CHECK(file.is_open());
file.write(req.get_body().data(), req.get_body().size());
Expand Down

0 comments on commit 185ff73

Please sign in to comment.