add 'data' argument to http error callback

This commit is contained in:
MihailRis
2025-09-16 23:17:06 +03:00
parent 20c5edb495
commit 7d6ddfa535
5 changed files with 35 additions and 37 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ TEST(curltest, curltest) {
auto view = std::string_view(data.data(), data.size());
auto value = json::parse(view);
std::cout << value << std::endl;
}, [](auto){}
}, [](auto, auto){}
);
std::cout << "upload: " << network->getTotalUpload() << " B" << std::endl;
std::cout << "download: " << network->getTotalDownload() << " B" << std::endl;