From c4af929d7a952e941f8446d1cf11fea692037cc8 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 27 Feb 2025 13:47:52 -0600 Subject: [PATCH] basic authentication --- repertory/repertory/src/ui/handlers.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index 82fc4f4c..f9e7d05f 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -39,8 +39,9 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server) } res.status = http_error_codes::unauthorized; - res.headers["WWW-Authenticate"] = - R"(Basic realm="Repertory Management Portal", charset="UTF-8")"; + res.set_header( + "WWW-Authenticate", + R"(Basic realm="Repertory Management Portal", charset="UTF-8")"); return httplib::Server::HandlerResponse::Handled; });