setup and fixes
This commit is contained in:
parent
4a15e2f827
commit
3826afd3bf
@ -38,7 +38,7 @@ ui(std::vector<const char *> args, const std::string & /*data_directory*/,
|
|||||||
std::string data;
|
std::string data;
|
||||||
auto res = utils::cli::parse_string_option(
|
auto res = utils::cli::parse_string_option(
|
||||||
args, utils::cli::options::ui_port_option, data);
|
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);
|
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.status = http_error_codes::unauthorized;
|
||||||
|
res.headers["WWW-Authenticate"] =
|
||||||
|
R"(Basic realm="Repertory Management Portal", charset="UTF-8")";
|
||||||
return httplib::Server::HandlerResponse::Handled;
|
return httplib::Server::HandlerResponse::Handled;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
0
web/repertory/lib/models/mount.dart
Normal file
0
web/repertory/lib/models/mount.dart
Normal file
0
web/repertory/lib/models/mount_list.dart
Normal file
0
web/repertory/lib/models/mount_list.dart
Normal file
0
web/repertory/lib/widgets/mount.dart
Normal file
0
web/repertory/lib/widgets/mount.dart
Normal file
0
web/repertory/lib/widgets/mount_list.dart
Normal file
0
web/repertory/lib/widgets/mount_list.dart
Normal file
Loading…
x
Reference in New Issue
Block a user