setup and fixes
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user