setup and fixes

This commit is contained in:
Scott E. Graves 2025-02-27 13:43:21 -06:00
parent 4a15e2f827
commit 3826afd3bf
6 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ ui(std::vector<const char *> args, const std::string & /*data_directory*/,
std::string data;
auto res = utils::cli::parse_string_option(
args, utils::cli::options::ui_port_option, data);
if (res == exit_code::success) {
if (res == exit_code::success && not data.empty()) {
ui_port = utils::string::to_uint16(data);
}

View File

@ -39,6 +39,8 @@ 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")";
return httplib::Server::HandlerResponse::Handled;
});

View File

View File

View File