(http server) support gzip compression
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user