From 9f0a51b9e504c2dfb7f74399e3d27df6fb245756 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 16 Feb 2023 22:20:38 +0100 Subject: [PATCH] add scheme --- src/routes/agreements.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/agreements.rs b/src/routes/agreements.rs index 4169ac7..d2303fe 100644 --- a/src/routes/agreements.rs +++ b/src/routes/agreements.rs @@ -25,7 +25,11 @@ fn get_security(config: Config, info: ConnectionInfo) -> String { let data = SecurityTemplate { contact: config.mail.unwrap_or_default(), pref_lang: config.lang.unwrap_or_default(), - url: format!("{}/.well-known/security.txt", info.host()), + url: format!( + "{}://{}/.well-known/security.txt", + info.scheme(), + info.host() + ), }; data.render().unwrap()