add scheme
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-02-16 22:20:38 +01:00
parent 2e65a2938c
commit 9f0a51b9e5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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