generated from Sithas/conan_template
Разработка ручки для GetAllMedications
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user