From 5dee5f3a572dea8aa25dd1e6dfa22c26b288358e Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 20 May 2015 15:35:59 -0300 Subject: [PATCH] Save HttpLoader output as binary --- src/app/res/http_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/res/http_loader.cpp b/src/app/res/http_loader.cpp index 70951efa6..a195dd2c2 100644 --- a/src/app/res/http_loader.cpp +++ b/src/app/res/http_loader.cpp @@ -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);