Save HttpLoader output as binary

This commit is contained in:
David Capello 2015-05-20 15:35:59 -03:00
parent cf8cd97cb6
commit 5dee5f3a57

View File

@ -60,7 +60,7 @@ void HttpLoader::threadHttpRequest()
base::replace_string(fn, "&", "-");
fn = base::join_path(dir, fn);
std::ofstream output(FSTREAM_PATH(fn));
std::ofstream output(FSTREAM_PATH(fn), std::ofstream::binary);
net::HttpRequest http(m_url);
net::HttpResponse response(&output);
http.send(response);