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; });