summaryrefslogtreecommitdiff
path: root/hscript/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/util.cc')
-rw-r--r--hscript/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/hscript/util.cc b/hscript/util.cc
index 13688dd..8317995 100644
--- a/hscript/util.cc
+++ b/hscript/util.cc
@@ -52,6 +52,7 @@ bool download_file(const std::string &url, const std::string &path) {
result = curl_easy_perform(curl);
if(result == CURLE_OK) {
+ fflush(fp);
return_code = true;
} else {
output_error("curl", "couldn't download file", errbuf);