From 8ed849bf53925329a9b50ff2fd7bb89b0cc3d991 Mon Sep 17 00:00:00 2001 From: Edo Date: Sat, 20 Jan 2024 14:10:58 +0100 Subject: [PATCH] Update Download.cpp --- src/Components/Modules/Download.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Download.cpp b/src/Components/Modules/Download.cpp index f70f53fa..6910e4c5 100644 --- a/src/Components/Modules/Download.cpp +++ b/src/Components/Modules/Download.cpp @@ -455,7 +455,7 @@ namespace Components if (!messageOverride.empty()) { - msg = message; + msg = messageOverride; } mg_http_reply(connection, code, "Content-Type: text/plain\r\n", "%s", msg.c_str()); @@ -478,14 +478,14 @@ namespace Components if (len <= 0) { - ReplyError(connection, 403, "Password Required"); + ReplyError(c, 403, "Password Required"); return false; } const auto password = std::string(buffer, len); if (password != Utils::String::DumpHex(Utils::Cryptography::SHA256::Compute(g_password), "")) { - ReplyError(connection, 403, "Invalid Password"); + ReplyError(c, 403, "Invalid Password"); return false; }