mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 11:02:26 +00:00
fixed windows build
This commit is contained in:
1 parent
21a7726916
commit
552bd58479
1 file changed
+1
-1
@@ -920,7 +920,7 @@ namespace torrents
|
||||
|
||||
boost::beast::error_code ec;
|
||||
boost::beast::http::file_body::value_type body;
|
||||
body.open (filePath.c_str (), boost::beast::file_mode::scan, ec);
|
||||
body.open (filePath.string ().c_str (), boost::beast::file_mode::scan, ec); // we can't use filePath.c_str () on Windows
|
||||
if (ec)
|
||||
{
|
||||
if (ec == boost::beast::errc::no_such_file_or_directory)
|
||||
|
||||
Reference in new issue
Block a user