From 42ec11a01330370621e7a53a138e0d540081926c Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Thu, 1 Feb 2024 16:01:25 +0100 Subject: [PATCH 1/2] Add version to initial Authress Local print statement. --- examples/server/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/server/main.rs b/examples/server/main.rs index 124e876..7ec069f 100644 --- a/examples/server/main.rs +++ b/examples/server/main.rs @@ -31,6 +31,8 @@ async fn main() { server::create(addr, &DATABASES).await; }); - info!("Authress Local is now running on localhost:8888"); + const VERSION: &str = env!("CARGO_PKG_VERSION"); + + info!("Authress Local (Version: {}) is now running on localhost:8888", VERSION); task.await.unwrap(); } From a19f08a7091077e5fb269286c0978e7c0622eb84 Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Thu, 1 Feb 2024 16:44:53 +0100 Subject: [PATCH 2/2] Fix unnecessary property set in match. --- src/server/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index 0a3a8b7..d42d87c 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -6883,7 +6883,7 @@ impl hyper::service::Service<(Request, C)> for Service where .expect("Unable to create OPTIONS response")); }, - z if path.matched(paths::ID_) => method_not_allowed(), + _ if path.matched(paths::ID_) => method_not_allowed(), _ if path.matched(paths::ID_API_AUTHENTICATION_OAUTH_TOKENS) => method_not_allowed(), _ if path.matched(paths::ID_V1_ACCOUNTS) => method_not_allowed(), _ if path.matched(paths::ID_V1_ACCOUNTS_ACCOUNTID) => method_not_allowed(),