From f698196778da3153b24d375c92644ce218958d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Thu, 8 Jan 2026 11:28:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D1=80=D1=83=D1=87=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20GetAllMedications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints_handlers/UserGetMedicationsExecutor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints_handlers/UserGetMedicationsExecutor.h b/src/endpoints_handlers/UserGetMedicationsExecutor.h index 8a263b2..152b5bd 100644 --- a/src/endpoints_handlers/UserGetMedicationsExecutor.h +++ b/src/endpoints_handlers/UserGetMedicationsExecutor.h @@ -44,7 +44,7 @@ public: BOOST_LOG_TRIVIAL(info) << "GET /api/v1/User/Medications - Request"; - if (req[http::field::authorization].empty()) + if (req[http::field::authorization].size() <= auth_prefix.size()) { BOOST_LOG_TRIVIAL(info) << invalid_token_message; throw session_exception(http::status::unauthorized, "Unauthorized");