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()