ws + mingw: uses << operator to write file to disk in WebSocketReceiver::handleMessage
This commit is contained in:
parent
39b2a3d6df
commit
99f9556aa9
@ -1893,7 +1893,7 @@ namespace ix
|
|||||||
|
|
||||||
spdlog::info("ws_receive: Writing to disk: {}", filenameTmp);
|
spdlog::info("ws_receive: Writing to disk: {}", filenameTmp);
|
||||||
std::ofstream out(filenameTmp);
|
std::ofstream out(filenameTmp);
|
||||||
out.write((char*) &content.front(), content.size());
|
out << content;
|
||||||
out.close();
|
out.close();
|
||||||
|
|
||||||
spdlog::info("ws_receive: Renaming {} to {}", filenameTmp, filename);
|
spdlog::info("ws_receive: Renaming {} to {}", filenameTmp, filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user