From 667de5e4155dcfad6cb6fecf378a305aaf8e3393 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 26 May 2020 22:51:46 -0500 Subject: hscript: Flush downloaded file before returning --- hscript/util.cc | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-60-g2f50