Skip to content

Commit

Permalink
Fixed std::filesystem::path to C-string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed May 19, 2024
1 parent 14816d8 commit d361e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpr/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ void Session::prepareBodyPayloadOrMultipart() const {
curl_mime_filename(mimePart, file.overriden_filename.c_str());
} else {
// NOLINTNEXTLINE (misc-include-cleaner)
curl_mime_filename(mimePart, fs::path(file.filepath).filename().c_str());
curl_mime_filename(mimePart, fs::path(file.filepath).filename().string().c_str());
}
}
} else {
Expand Down

0 comments on commit d361e45

Please sign in to comment.