(http server) support gzip compression

This commit is contained in:
Benjamin Sergeant
2020-05-29 16:49:29 -07:00
parent 9886a30490
commit b008c97c83
5 changed files with 59 additions and 4 deletions

View File

@ -109,8 +109,11 @@ namespace ix
args->verbose = verbose;
args->compress = compress;
args->logger = [](const std::string& msg) { spdlog::info(msg); };
args->onProgressCallback = [](int current, int total) -> bool {
spdlog::info("Downloaded {} bytes out of {}", current, total);
args->onProgressCallback = [verbose](int current, int total) -> bool {
if (verbose)
{
spdlog::info("Downloaded {} bytes out of {}", current, total);
}
return true;
};