Fix some comments, remove redundant fields etc

This commit is contained in:
Henrik Rydgård
2026-06-13 17:44:26 +02:00
parent 2604e169e1
commit 96ae36b7dd
6 changed files with 12 additions and 13 deletions
+2 -2
View File
@@ -10,8 +10,8 @@
namespace http {
Request::Request(RequestMethod method, std::string_view url, std::string_view name, bool *cancelled, RequestFlags flags)
: method_(method), url_(url), name_(name), progress_(cancelled), flags_(flags) {
Request::Request(RequestMethod method, std::string_view url, std::string_view name, const Path &outFile, bool *cancelled, RequestFlags flags)
: method_(method), url_(url), name_(name), outfile_(outFile), progress_(cancelled), flags_(flags) {
INFO_LOG(Log::HTTP, "HTTP %s request: %.*s (%.*s)", RequestMethodToString(method), (int)url.size(), url.data(), (int)name.size(), name.data());
progress_.callback = [this](int64_t bytes, int64_t contentLength, bool done) {