ws + mingw: uses << operator to write file to disk in WebSocketReceiver::handleMessage

This commit is contained in:
Benjamin Sergeant 2021-03-19 11:39:14 -07:00
parent 39b2a3d6df
commit 99f9556aa9

View File

@ -1893,7 +1893,7 @@ namespace ix
spdlog::info("ws_receive: Writing to disk: {}", filenameTmp);
std::ofstream out(filenameTmp);
out.write((char*) &content.front(), content.size());
out << content;
out.close();
spdlog::info("ws_receive: Renaming {} to {}", filenameTmp, filename);