basic authentication

This commit is contained in:
Scott E. Graves 2025-02-27 13:47:52 -06:00
parent 3826afd3bf
commit c4af929d7a

View File

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